// triggered when the board menu key is released by GameplayUIManager private void ExecuteSelectedAction() { Done(); if (SelectedThing == 0) // cancel { GameplayUIManager.UIState = UIState.None; } else if (SelectedThing == 1) // new board { NewBoardMenu.Instance.Initialize(); } else if (SelectedThing == 2) // move board { BoardFunctions.MoveExistingBoard(); } else if (SelectedThing == 3) // clone board { BoardFunctions.CloneBoard(); } else if (SelectedThing == 4) // stack board { StackBoardMenu.Instance.Initialize(); } else if (SelectedThing == 5) // paint board { PaintBoardMenu.Instance.Initialize(); } else if (SelectedThing == 6) // save board { SaveBoardMenu.SaveBoard(); } else if (SelectedThing == 7) // load board { LoadBoardMenu.Instance.Initialize(); } else { Debug.LogError("tried to execute invalid action ID: " + SelectedThing); GameplayUIManager.UIState = UIState.None; } }