public void UndoTurn() { // only charge gems when in normal play mode (not when in edit or test) if (Identity.GetGems() < 1 && State.gameActivity == GameActivity.play) { ActorGameManager.ShowGroup(getHintPanel, true); } else { ActorGameManager.UndoTurn(); } }