void OnGameInAction(bool flag) { UIHUD.OnGameInAction(flag); UIUnitAbilityButton.OnGameInAction(flag); UIFactionAbilityButton.OnGameInAction(flag); ClearLastClickTile(); }
void OnUnitDeployment(bool flag) { if (flag) { UIUnitDeployment.Show(); UIHUD.HideInstant(); UISelectedUnitInfo.HideInstant(); } else { //UIUnitDeployment.Hide(); UIHUD.Show(); UISelectedUnitInfo.Show(); } }
void OnNewTurn(bool flag) { if (!isGameStarted) { isGameStarted = true; UIHUD.OnGameStarted(); } isPlayerTurn = flag; UIHUD.OnNewTurn(flag); UIUnitAbilityButton.OnNewTurn(flag); UIFactionAbilityButton.OnNewTurn(flag); ClearLastClickTile(); }
void Awake() { instance = this; thisObj = gameObject; rectT = thisObj.GetComponent <RectTransform>(); canvasGroup = thisObj.GetComponent <CanvasGroup>(); if (canvasGroup == null) { canvasGroup = thisObj.AddComponent <CanvasGroup>(); } endTurnButton.rootObj = endTurnObj; endTurnButton.Init(); endTurnButton.imgHighlight.gameObject.SetActive(false); endTurnButton.rootObj.SetActive(false); perkButton.rootObj = perkButtonObj; perkButton.Init(); perkButton.rootObj.SetActive(false); rectT.localPosition = new Vector3(0, 0, 0); }