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); }
public void AbortBattle(OnCancelBattle callback) { ReviveUsed = 0; IsFinish = false; _abortBattleCallback = callback; if (NetworkManager.isOfflinePlay) { callback(true); } else { ConnectionManager.Instance.RegisterHandler(SendAbortBattle, true); } }