// Use this for initialization void Start() { // Get position to place health bar healthBarPos = this.transform.FindChild ("Health Bar Pos"); healthBar = Instantiate (barQuadFab, healthBarPos.position, Quaternion.identity) as GameObject; controller = this.gameObject.GetComponent<EnemyController_Base> (); }
void transitionChase(GameObject chase) { objectHealing = chase; objectHealingScript = chase.GetComponent<EnemyController_Base>(); currState = EnemyState.CHASE; }