//void Start private void Start() { if (states == null) { states = GetComponent <EnemyStates>(); } states.Init(); }