public void UndoAction() { if (forwardTriggerPink == true && hitWall == false) { gameManager.BackwardPink(); } else if (rightTriggerPink == true) { gameManager.RotateLeftPink(); } else if (leftTriggerPink == true) { gameManager.RotateRightPink(); } else if (forwardTriggerBlue == true && hitWall == false) { gameManager.BackwardBlue(); } else if (rightTriggerBlue == true) { gameManager.RotateLeftBlue(); } else if (leftTriggerBlue == true) { gameManager.RotateRightBlue(); } }