Пример #1
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject.tag == "Player")
     {
         theLM.AddLife();
         Destroy(gameObject);
     }
 }
Пример #2
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject.tag == "Player")
     {
         theLM.AddLife();
         Destroy(gameObject);
         ScoreManager.instance.AddPoint();
     }
 }
Пример #3
0
 public void AddBonusLife()
 {
     _livesManager.AddLife();
     AudioSource.PlayClipAtPoint(_bonusSFX, Camera.main.transform.position, 0.5f);
 }