Пример #1
0
        void OnGameInAction(bool flag)
        {
            UIHUD.OnGameInAction(flag);
            UIUnitAbilityButton.OnGameInAction(flag);
            UIFactionAbilityButton.OnGameInAction(flag);

            ClearLastClickTile();
        }
Пример #2
0
        public IEnumerator _EndTurn()
        {
            UIUnitAbilityButton.Hide();
            UIFactionAbilityButton.Hide();

            yield return(new WaitForSeconds(0.25f));

            GameControl.EndTurn();
        }
Пример #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>();
            }

            canvasGroup.alpha          = 0;
            canvasGroup.interactable   = false;
            canvasGroup.blocksRaycasts = false;

            tooltipObj.SetActive(false);

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