public void OnEnter(Control_Enemy enemy) { this.myEnemy = enemy; rotation = 0; player = GameObject.FindGameObjectWithTag("Player").GetComponent <Player>(); remaingTime = timerAttack; myEnemy.SetLayerAnimation(1); }
public void OnExit() { myEnemy.SetLayerAnimation(0); }