Exemplo n.º 1
0
 public void OnHitEnemy(GameObject EnemyObj)
 {
     if (EnemyObj.GetComponent <Enemy>().OnHit(this.GetComponent <EntityStats>()))
     {
         mExperienceManager.OnGainedXP(XPGainType.KILL_TYPE);
         OnKilledEnemy();
     }
 }