// public void OnMuzzleyPartipantJoin(string currentWidget, // string currentWidgetParams, // string id, // string name, // string photoUrl, // string profileId) { public void OnMuzzleyPartipantJoin(MuzzleyAppParticipant participant) { Debug.Log("Participant " + participant + " id = " + participant.Id + " joined!"); currentId = participant.Id; createCar = true; //GameObject bumperCar = (GameObject)Instantiate(bumperCarPrefab); // // muzzleyAppController.addParticipant(bumperCar.GetComponent<CoreGamePadListener>()); }
private void OnQuit(MuzzleyAppParticipant muzzley_participant) { idCarroSaiu = muzzley_participant.Id; state = STATE.JOGADOR_SAIU; }
private void OnJoin(MuzzleyAppParticipant muzzley_participant) { muzzley_participant.ChangeWidget(MuzzleyConstants.Widgets.GAMEPAD, motion); idNovoCarro = muzzley_participant.Id; nomeDoUsuario = muzzley_participant.Name; fotoUrl = muzzley_participant.PhotoUrl; state = STATE.JOGADOR_ENTROU; //print(muzzley_participant.Id); }
private void OnQuit(MuzzleyAppParticipant muzzley_participant) { }
private void OnJoin(MuzzleyAppParticipant muzzley_participant) { // muzzley_participant.ChangeWidget(MuzzleyConstants.Widgets.GAMEPAD, motion); muzzley_participant.ChangeWidget(MuzzleyConstants.Widgets.GAMEPAD, new Dictionary<string, object>() { {SECTOR, 45}, {INTENSITY_STEPS, 4}, {MuzzleyConstants.Widgets.Params.NUMBUTTONS, 4} }); OnParticipantJoin(muzzley_participant); // OnParticipantJoin(muzzley_participant.CurrentWidget.ToString(), // muzzley_participant.CurrentWidgetParams.ToString(), // muzzley_participant.Id.ToString(), // muzzley_participant.Name.ToString(), // muzzley_participant.PhotoUrl.ToString(), // muzzley_participant.ProfileId.ToString()); }