public RobotSquadImageController AddRobotSquadImage() { RobotSquadImageController addedRobot = Instantiate(robotSquadImage, squadPanelRobotHolder); squadRobots.Add(addedRobot); return(addedRobot); }
public void AddSelectedToSquad(SquadPanelController squadPanel, UnityAction <RobotSquadImageController> removeCallback) { RobotSquadImageController addedRobot = squadPanel.AddRobotSquadImage(); addedRobot.SetRemoveCallback(removeCallback); addedRobot.SetSprite(maximizedRosterRobot.GetRobotSprite()); addedRobot.SetRating(maximizedRosterRobot.GetRating()); maximizedRosterRobot.Hide(); mySquadPanel.squadPanelButton.interactable = opponentSquadPanel.squadPanelButton.interactable = false; }
public void RemoveRobotSquadImage(RobotSquadImageController removedRobot) { squadRobots.Remove(removedRobot); }
public void RemoveAddedFromSquad(RobotSquadImageController robot, SquadPanelController panel) { Destroy(robot.gameObject); panel.RemoveRobotSquadImage(robot); }
public void RemoveAddedFromOpponentSquad(RobotSquadImageController robot) { RemoveAddedFromSquad(robot, opponentSquadPanel); }
public void RemoveAddedFromMySquad(RobotSquadImageController robot) { myStarCount -= robot.GetRating(); UpdateStarText(); RemoveAddedFromSquad(robot, mySquadPanel); }