Пример #1
0
 void OnCollisionStay(Collision other)
 {
     if (hit)
     {
         currHitTime += Time.deltaTime;
         if (currHitTime >= hitTimeLimit)
         {
             MainRooms.Rotate();
             hit         = false;
             currHitTime = 0f;
         }
     }
 }