public static StateAsleep getInstance() { if (instance == null) { instance = new StateAsleep(); } return(instance); }
/// <summary> /// Sleepy sleepy, my foe /// </summary> public void GoToSleep() { StateMachine.ChangeState(StateAsleep.getInstance()); }
/// <summary> /// Checks if the enemy is asleep /// </summary> /// <returns>True if asleep, false otherwise.</returns> public bool IsAsleep() { return(StateMachine.IsInState(StateAsleep.getInstance())); }