Example #1
0
 void OnTriggerEnter2D(Collider2D other)
 {
     if (stopRepeating)
     {
         return;
     }
     if (other.tag == "Player")
     {
         menuScript.GToggle();
         stopRepeating = true;
     }
 }