예제 #1
0
    public override void Die()
    {
        base.Die();

        GameManager.instance.playerStats.GiveGold(gold_reward);

        camp.enemies.Remove(this.gameObject);

        if (camp.enemies.Count <= 0)
        {
            camp.CampCleared();
        }
        else
        {
            camp.SwitchTarget();
        }
        Destroy(this.gameObject);
    }