Exemplo n.º 1
0
    public virtual void Die()
    {
        print("Killed " + gameObject.name);
        FamePoints.KillFame(stats.deathFame);
        if (OnEnemyDeath != null)
        {
            OnEnemyDeath();
        }

        Destroy(this.gameObject);
    }
Exemplo n.º 2
0
 public override void Die()
 {
     FamePoints.MortFame();
     SceneManager.LoadScene("MenuManager", LoadSceneMode.Additive);
 }