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