private void onGrantBundleSucceeded(string playerID) { ServerPlayerModel serverPlayerModel = getServerPlayerAndUpdateRewardCount(playerID); ZoneCompletedEvent zoneCompletedEvent = new ZoneCompletedEvent(playerIDToBundle[playerID], isFinalZone); if (serverPlayerModel.ClientConnection.Connected) { serverPlayerModel.ClientConnection.SendEvent(zoneCompletedEvent.EventData, zoneCompletedEvent.SendParameters); } checkCompletion(); }
private void onGrantBundleFailed(string playerID) { if (emptyZoneCompletedEvent == null) { emptyZoneCompletedEvent = new ZoneCompletedEvent(new Bundle(), isFinalZone); } ServerPlayerModel serverPlayerModel = getServerPlayerAndUpdateRewardCount(playerID); if (serverPlayerModel.ClientConnection.Connected) { serverPlayerModel.ClientConnection.SendEvent(emptyZoneCompletedEvent.EventData, emptyZoneCompletedEvent.SendParameters); } checkCompletion(); }