Пример #1
0
    public void CancelBattle(OnCancelBattle callback)
    {
        IsFinish = true;
        int myIndex = MatchPlayerManager.Instance.GetPlayerIndex();

        MatchPlayerManager.Instance.GetMatchPlayerProfile(myIndex)._isDropped = true;
        //_cancelCallback = callback;
        ConnectionManager.Instance.RegisterHandler(sendPvPBattleSummary, true);
    }
Пример #2
0
    public void AbortBattle(OnCancelBattle callback)
    {
        ReviveUsed = 0;

        IsFinish             = false;
        _abortBattleCallback = callback;


        if (NetworkManager.isOfflinePlay)
        {
            callback(true);
        }
        else
        {
            ConnectionManager.Instance.RegisterHandler(SendAbortBattle, true);
        }
    }