コード例 #1
0
 public void SetSelected(MenuItemController menuItem)
 {
     if (selectedMenuItem != null)
     {
         selectedMenuItem.Activate();
     }
     selectedMenuItem = menuItem;
 }
コード例 #2
0
    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();
    }