public static void SelectArmy(Army sel) { army = sel; army.Selected(true); ArmyPanel.Show(true); DeselectShip(); }
public static void DeselectArmy() { army?.Selected(false); army = null; if (CastingSkill) { StopCastSkill(); } ArmyPanel.Show(false); }
void Awake() { instance = this; GetComponent <CanvasScaler>().referenceResolution = new Vector2(Screen.currentResolution.width, Screen.currentResolution.height); miniMap = Instantiate(miniMap, transform); datePanel = Instantiate(datePanel, transform); saveLoadPanel = Instantiate(saveLoadPanel, transform); statisticPanel = Instantiate(statisticPanel, transform); gameMenu = Instantiate(gameMenu, transform); codePanel = Instantiate(codePanel, transform); // battlePanel = Instantiate(battlePanel, transform); provincePanel = Instantiate(provincePanel, transform); armyPanel = Instantiate(armyPanel, transform); HelpManager = Instantiate(HelpManager, transform); saveLoadPanel.prevMenu = gameMenu.gameObject; }
void Awake() { Instance = this; gameObject.SetActive(false); exchangeImage.gameObject.SetActive(false); }