public void SetSelected(MenuItemController menuItem) { if (selectedMenuItem != null) { selectedMenuItem.Activate(); } selectedMenuItem = menuItem; }
public void AddSubmittedCommand(Command cmd, short id, bool isOpponent) { Sprite s = cmd is Command.Spawn ? queueSprites[cmd.direction] : GetArrow(Command.GetDisplay(cmd.commandId)); RobotPanelsContainerController robotPanelsContainer = isOpponent ? opponentsRobots : myRobots; robotPanelsContainer.AddSubmittedCommand(cmd, id, s); submitCommands.Activate(); }