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