Created
November 23, 2021 06:28
-
-
Save GT3000/4519075f10257848981cf11ebed2532b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public abstract class GoldDistribution : MonoBehaviour | |
{ | |
[SerializeField] private string squadName; | |
[SerializeField] private string unitName; | |
//Used to calculate the salary if no units are present in this case a debug.log saying no units on payroll | |
public virtual void CalculateUnitSalary() | |
{ | |
Debug.Log("No units on payroll."); | |
} | |
//Has the unit identify themselves by name and squad name | |
protected void UnitIdentification() | |
{ | |
Debug.Log("Unit Name: " + unitName); | |
Debug.Log("Squad Name: " + squadName); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment