public void GameStart() { SetCompoenentReferences(); if (idleState != null) { idleState.OnStateInit(); } if (movementState != null) { movementState.OnStateInit(); } if (gestureState != null) { gestureState.OnStateInit(); } if (deadState != null) { deadState.OnStateInit(); } ChangeState(idleState); }