Exemplo n.º 1
0
 public DKBalloonCollectedState(DKBalloon item)
 {
     this.item = item;
     ScoreSystem.addLives(1);
     SoundPool.PlaySound(Sound.CollectibleLifeGained);
     PhysicsWorld.Instance.DestroyBody(this.item.Body);
     WorldManager.Instance.RemoveObject(this.item);
 }
 public DKBalloonIdleState(DKBalloon item)
 {
     this.item        = item;
     this.item.Sprite = ItemSpriteFactory.Instance.CreateDKBalloonSprite();
 }