Example #1
0
    /// <summary>
    /// Attacks the player health
    /// </summary>
    public virtual void Attack()
    {
        GameStats.Instance.SubtractHealth(Damage);
        print(GameStats.Instance.GetPlayerHealth());

        // Play audio
        manager.playSoundNoOverlap(attackNoise, 0.25f);

        // Do animation too
    }