public void HandleRotateRequest(Shape shape) { UnityEngine.Vector3 movementVector = new UnityEngine.Vector3 (0, 0, 0); shape.Rotate (); if (CheckCollisionWithAnyWall (shape, movementVector) || DoAnyShapesCollideInScene (shape, movementVector)) { shape.Rotate (true); } }