WarTornLands.PlayerClasses.Player.GivePotion C# (CSharp) Méthode

GivePotion() public méthode

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

Usage Example

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

            base.OnCollide(player);
        }