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