예제 #1
0
    public void Die()
    {
        Experience xp = PlayerScript.GetAttribute(typeof(Experience)) as Experience;

        xp.GainXP(xp_gain);
        Destroy(gameObject);
    }