Skip to content

Instantly share code, notes, and snippets.

@GT3000
Created November 23, 2021 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GT3000/4519075f10257848981cf11ebed2532b to your computer and use it in GitHub Desktop.
Save GT3000/4519075f10257848981cf11ebed2532b to your computer and use it in GitHub Desktop.
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