public void OnEnterAlert(long friendId, Data.BattleType type, string friendName, string friendPortrait)
        {
            controller.OnEnter();
            this.gameObject.SetActive(true);

            currentFriendId       = friendId;
            currentBattleType     = type;
            currentFriendName     = friendName;
            currentFriendPortrait = friendPortrait;

            RefreshView();
            StartCoroutine("WaitAMinuteRefuse");
        }
Exemplo n.º 2
0
        private string GetBattleMode(Data.BattleType type)
        {
            switch (type)
            {
            case Data.BattleType.BattleP1vsP1:
                return("1v1");

            case Data.BattleType.BattleP2vsP2:
                return("2v2");

            case Data.BattleType.Survival:
                return("生存");

            case Data.BattleType.Tranining:
                return("训练");
            }
            return("");
        }