public void activateMinionInfoPanel(string minionTypeId) { if (!alwaysActiveInfoPanel) { alwaysActiveInfoPanel = false; panel_TowerInfo.SetActive(false); IMinionGUI minionGUI = TypeIdGeneratorGUI.minionGuiInst[Int32.Parse(minionTypeId)]; minionGUI.drawInfoPanelGUI(); } }
public void upgradeMinion(Type oldMinionType, Type upgradedMinionType) { GameObject button = uiControllerGame.towerAndMinionButtons[oldMinionType]; int minionId = TypeIdGenerator.getMinionId(upgradedMinionType); IMinionGUI minionGUI = TypeIdGeneratorGUI.minionGuiInst[minionId]; UIButtonMessage[] button_messages = button.GetComponents <UIButtonMessage>(); foreach (var btn_msg in button_messages) { btn_msg.parameter = minionId.ToString(); } minionGUI.drawCreateMinionButtonGUI(button); uiControllerGame.towerAndMinionButtons.Remove(oldMinionType); uiControllerGame.towerAndMinionButtons.Add(upgradedMinionType, button); minionGUI.drawInfoPanelGUI(); }
public void createMinion(string minionTypeId) { int minionId = Int32.Parse(minionTypeId); if (UICamera.currentTouchID == -2) { panel_TowerInfo.SetActive(false); alwaysActiveInfoPanel = true; IMinionGUI minionGUI = TypeIdGeneratorGUI.minionGuiInst[minionId]; minionGUI.drawInfoPanelGUI(); } else { if (PlayerMe.cash < TypeIdGenerator.getMinionClass(minionId).getCost()) { Announcement.make("[FF0000]Not enough money[-]", Announcement.ScreenPosition.MiddleBottom, 2.0f, 20.0f); } else { Assets.Scripts.Engine.Messages.OutgoingMessages.Game.GCreateMinionRequest.sendMessage(minionId); } } }
public void activateMinionInfo(IMinionGUI minionGUI) { uiControllerGame.alwaysActiveInfoPanel = true; uiControllerGame.panel_TowerInfo.SetActive(false); minionGUI.drawInfoPanelGUI(); }
public void activateMinionInfo(IMinionGUI minionGUI) { uiControllerGame.alwaysActiveInfoPanel = true; uiControllerGame.panel_TowerInfo.SetActive(false); minionGUI.drawInfoPanelGUI(); }