MyPolarBear.GameObjects.PolarBear.TakeDamage C# (CSharp) Method

TakeDamage() public static method

public static TakeDamage ( int amount, System.Entity source ) : void
amount int
source System.Entity
return void
        public static void TakeDamage(int amount, Entity source)
        {
            if (bInvincible)
            {
                return;
            }

            CurHitPoints -= amount;

            if (amount > 0)
            {
                bInvincible = true;
                mInvincibleDeltaTime = 0;
                SoundManager.PlaySound("Ow");
            }
        }