Esempio n. 1
0
 void CheckSquish()
 {
     if ((cirref.SR && cirref.SL) || (cirref.SB && cirref.ST))
     {
         MG_StateManager Ref = FindObjectOfType <MG_StateManager>();
         Ref.RestartScene();
     }
 }
Esempio n. 2
0
 private void OnTriggerEnter2D(Collider2D other)
 {
     if (other.gameObject.tag == "Death")
     {
         Debug.Log(other.gameObject.name);
         MG_StateManager Ref = FindObjectOfType <MG_StateManager>();
         Ref.RestartScene();
     }
 }