private void OnStartInvitingForMatch(object model) { GPMPMatchModel matchModel = (GPMPMatchModel)model; PlayGamesPlatform.Instance.RealTime.CreateWithInvitationScreen(matchModel.minimumAmountOpponents, matchModel.maximumAmountOpponents, 0, this); LoadingController.LoadScene(LoadingController.Scenes.GPMP_WAITING_ROOM); }
private void OnStartSearchForQuickMatch(object model) { GPMPMatchModel matchModel = (GPMPMatchModel)model; PlayGamesPlatform.Instance.RealTime.CreateQuickGame(matchModel.minimumAmountOpponents, matchModel.maximumAmountOpponents, 0, this); LoadingController.LoadScene(LoadingController.Scenes.GPMP_WAITING_ROOM); }
// GPMP private void OnGameStartReady(object matchModel) { GPMPMatchModel model = (GPMPMatchModel)matchModel; DebugMP.Log("Game start revieved by batch view. I am host: " + model.iAmTheHost); if (model.iAmTheHost) { EventManager.TriggerEvent(SpawnSystemEvents.TOGGLE_SPAWNING, true); } }
private void OnMatchInfoReady(object model) { matchModel = (GPMPMatchModel)model; if (matchModel.iAmTheHost) { lastKnownPosition = playerTwoSpawnpoint; } else { lastKnownPosition = playerOneSpawnpoint; } }
private void OnMatchInfoReady(object model) { matchModel = (GPMPMatchModel)model; if (matchModel.iAmTheHost) { rigidbody.position = playerOneSpawnpoint; } else { rigidbody.position = playerTwoSpawnpoint; } xPosition = rigidbody.position.x; }
// GPMP private void OnMatchInfoReady(object matchModel) { GPMPMatchModel model = (GPMPMatchModel)matchModel; iAmTheHost = model.iAmTheHost; }