Example #1
0
 private void Awake()
 {
     _Team        = GetComponent <Barrack>().GetTeam();
     _resources   = FindObjectOfType <GatherResources>();
     _unitStorage = FindObjectOfType <UnitStorage>();
 }
Example #2
0
 // Use this for initialization
 void Start()
 {
     gameManager     = GetComponent <GameManager>();
     gatherResources = GetComponent <GatherResources>();
 }