Exemple #1
0
 public void GetExp(int exp)
 {
     curExp += exp;
     if (curExp >= evolExp && evolMonId != -1)
     {
         GrowGameCtrl.GetInstance().CreatMon(evolMonId, gameObject.transform.position);
         Dead();
     }
 }
Exemple #2
0
 public void GetTarget()
 {
     target = GrowGameCtrl.GetInstance().GetCloseMon(this);
 }
Exemple #3
0
 public void Dead()
 {
     GrowGameCtrl.GetInstance().RemoveMon(this);
     Destroy(gameObject);
 }