void OnCollisionStay(Collision other) { if (hit) { currHitTime += Time.deltaTime; if (currHitTime >= hitTimeLimit) { MainRooms.Rotate(); hit = false; currHitTime = 0f; } } }