Esempio n. 1
0
 public QuestionmarkBlock(Vector2 location)
 {
     stateMachine  = new QuestionmarkBlockStateMachine();
     Location      = location;
     Destination   = stateMachine.MakeDestinationRectangle(Location);
     coinAnimation = new CoinCollectedFromBlockAnimation(new Vector2(Location.X, Location.Y - Destination.Height));
 }
Esempio n. 2
0
 public void Update()
 {
     Destination = stateMachine.MakeDestinationRectangle(Location);
     stateMachine.Update();
 }