Beispiel #1
0
 private void OnTriggerEnter(Collider other)
 {
     if (other.tag == "Player")
     {
         scorePopup.PopUpScoreNumber();
         Destroy(GetComponent <BoxCollider>());
         StartCoroutine(WaitAndExplode());
         Destroy(gameObject, 2f);
     }
 }