private void Awake() { controller = GetComponent <EnemyStateMachine>(); attack = GetComponent <Attack>(); }