public static void SetState(State newState) { if (State != null) State.Leave(); State = newState; State.Enter(); }
protected Entity(State state) { DepthBias = (float)Program.Random.NextDouble(); State = state; }