void OnTriggerEnter(Collider col)
 {
     if (col.gameObject.tag == "ScoreCollectable")
     {
         scoreKeeper.AddScore(col);
         col.gameObject.SetActive(false);
     }
 }
示例#2
0
 void CheckHealth()
 {
     if (health <= 0)
     {
         scoreKeeping.AddScore(score);
         DestroyEnemy();
     }
 }