private void Awake() { CreepType = creepType; //For defenders currentTowerLevel = 1; TowerDefenderLevel = currentTowerLevel; TowerDefenderUpgradePath = 0; defenderHealth = GetComponent <scrUnitHealth>(); animationEventHandler = GetComponentInChildren <scrAnimationEventHandler>(); }
private void Awake() { defenderAnimator = GetComponentInChildren <Animator>(); //Gets the reference of the animator defenderHealth = GetComponent <scrUnitHealth>(); //Gets the instance defender = GetComponent <DefenderEngagementHandler>(); //Gets the instance }