Пример #1
0
 public DKBananaCollectedState(DKBanana item)
 {
     this.item = item;
     ScoreSystem.addBananas(1);
     SoundPool.PlaySound(Sound.CollectibleBanana);
     item.Body.Velocity = new Vector2(X_COLLECTED_SPEED, Y_COLLECTED_SPEED);
 }
 public DKBananaIdleState(DKBanana item)
 {
     this.item        = item;
     this.item.Sprite = ItemSpriteFactory.Instance.CreateDKBananaSprite();
 }