Пример #1
0
 public static StateableSprite Create(SpriteStates spriteStates)
 {
     return(new StateableSprite(spriteStates));
 }
Пример #2
0
 private StateableSprite(SpriteStates spriteStates)
 {
     SpriteStates = spriteStates;
     CurrentState = State.DEFAULT;
 }