コード例 #1
0
ファイル: Player.cs プロジェクト: Group4-CSE/Zelda
        public void UseBomb(GameManager game)
        {
            if (inventory.Contains("Bomb"))
            {
                state.PlaceItem();

                sound1.BombD(0);
                state.spawnBomb(game, sound1);
                Bombs = Bombs - 1;
                if (Bombs <= 0)
                {
                    inventory.Remove("Bomb");
                    selectedItem = "";
                }
            }
        }