コード例 #1
0
        void ShowTurnBattleNotify()
        {
            PopupTurnBattleNotify popup = Instantiate(_showTurnBattle);

            popup.transform.SetParent(GameObject.Find("FrontCanvas").transform, false);

            if (_battleRound == BATTLEROUND.PLAYER)
            {
                popup.SetNotifyText("Player phase");
                popup.mPopupTurnBattleAnim.SetTrigger("IsTurnPlayer");
            }
            else
            {
                popup.SetNotifyText("Enemy phase");
            }

            popup.SetTurnText("round " + _turnAround);
        }
コード例 #2
0
        void ShowTurnBattleNotify()
        {
            PopupTurnBattleNotify popup = Instantiate(_showTurnBattle);

            popup.transform.SetParent(GameObject.Find("Canvas").transform, false);

            if (_roundBattle == _RoundBattle.PLAYER)
            {
                popup.SetNotifyText("รอบของผู้เล่น");
                popup.mPopupTurnBattleAnim.SetTrigger("IsTurnPlayer");
            }
            else
            {
                popup.SetNotifyText("รอบของศัตรู");
            }

            popup.SetTurnText("รอบที่ " + _turnAround);
        }