Beispiel #1
0
        void OnGameInAction(bool flag)
        {
            UIHUD.OnGameInAction(flag);
            UIUnitAbilityButton.OnGameInAction(flag);
            UIFactionAbilityButton.OnGameInAction(flag);

            ClearLastClickTile();
        }
Beispiel #2
0
        public IEnumerator _EndTurn()
        {
            UIUnitAbilityButton.Hide();
            UIFactionAbilityButton.Hide();

            yield return(new WaitForSeconds(0.25f));

            GameControl.EndTurn();
        }
Beispiel #3
0
        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>();
            }

            tooltipRectT = tooltipObj.GetComponent <RectTransform>();
            tooltipObj.SetActive(false);

            rectT.localPosition = new Vector3(0, 0, 0);
        }