Ejemplo n.º 1
0
        public DKKongTileCollectedState(DKKongTile item)
        {
            this.item = item;
            switch (item.KongTileLetter)
            {
            case DKKongTileType.K:
                SoundPool.PlaySound(Sound.CollectibleLetterK);
                break;

            case DKKongTileType.O:
                SoundPool.PlaySound(Sound.CollectibleLetterO);
                break;

            case DKKongTileType.N:
                SoundPool.PlaySound(Sound.CollectibleLetterN);
                break;

            case DKKongTileType.G:
                SoundPool.PlaySound(Sound.CollectibleLetterG);
                break;
            }
            ScoreSystem.addKongTiles(item.KongTileLetter);
            PhysicsWorld.Instance.DestroyBody(this.item.Body);
            WorldManager.Instance.RemoveObject(this.item);
        }
Ejemplo n.º 2
0
 public DKKongTileIdleState(DKKongTile item)
 {
     this.item = item;
     //item.Sprite = ItemSpriteFactory.Instance.CreateDKKongTileSprite();
 }