예제 #1
0
 void OnBecameInvisible()
 {
     if (_GC != null)
     {
         if (_GC.iscallCat)
         {
             _GC.StartCoroutine("callCat");
         }
         if (_GC.isRatInMouth)
         {
             _GC.failStage();
         }
     }
     Destroy(this.gameObject, 2f);
 }