Example #1
0
 void OnCollisionEnter2D(Collision2D collision)
 {
     StateFunc.circleTimer    = SetYaml.touchTimeSet;
     StateFunc.isCollisionOn  = true;
     StateFunc.isCollisionOff = false;
     TimerFlash.FlashSet();
 }
Example #2
0
 /// <summary>
 /// Collision Detect
 /// </summary>
 /// <param name="collision"></param>
 void OnCollisionEnter2D(Collision2D collision)
 {
     GlobalVar.isCollisionOn  = true;
     GlobalVar.isCollisionOff = false;
     TimerFlash.FlashSet();
 }