void OnGameInAction(bool flag) { UIHUD.OnGameInAction(flag); UIUnitAbilityButton.OnGameInAction(flag); UIFactionAbilityButton.OnGameInAction(flag); ClearLastClickTile(); }
public IEnumerator _EndTurn() { UIUnitAbilityButton.Hide(); UIFactionAbilityButton.Hide(); yield return(new WaitForSeconds(0.25f)); GameControl.EndTurn(); }
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>(); } canvasGroup.alpha = 0; canvasGroup.interactable = false; canvasGroup.blocksRaycasts = false; tooltipObj.SetActive(false); rectT.localPosition = new Vector3(0, 0, 0); }