private void ChangeControlState(ControlStatesScript newState) { enemyState = newState; enemyState.OnStateEnter(); }
public void ChangeControlState(ControlStatesScript newState) { controlstate = newState; controlstate.OnStateEnter(); }
public void SetAction(GameObject button, action act, ControlStatesScript newState) { button.GetComponent <Button>().onClick.AddListener(delegate { act.Invoke(newState); }); }