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