WarTornLands.PlayerClasses.Player.GivePotion C# (CSharp) Method

GivePotion() public method

public GivePotion ( ) : void
return void
        public void GivePotion()
        {
            // TODO durch vernünftiges inventar ersetzen XD
            _potionCount++;
        }

Usage Example

示例#1
0
        public override void UseThis(Player player)
        {
            // "einsammeln"
            if (player == (Game as Game1)._player)
            {
                // Open chest
                player.GivePotion();
            }

            base.OnCollide(player);
        }