Ejemplo n.º 1
0
    /// <summary>
    /// Gives the player the value of the unit into their
    /// </summary>
    public virtual void Die()
    {
        GameStats.Instance.AddGold(Value);

        // Play audio
        manager.playSound(deathNoise, 1.0f);

        gameObject.SetActive(false);
    }