Beispiel #1
0
 private void OnLogout()
 {
     if (_multiplayService != null)
     {
         _multiplayService.Close();
         _multiplayService = null;
     }
 }
Beispiel #2
0
 private void OnDestroy()
 {
     if (_multiplayService != null)
     {
         _multiplayService.Close();
         _multiplayService = null;
     }
 }
Beispiel #3
0
 private void OnLogin()
 {
     if (_multiplayService == null)
     {
         _multiplayService = new MultiplayService(MultiPlayerServerAddress, new Player()
         {
             Name          = PlayerName,
             ModelName     = ModelName,
             HeadPosition  = Vector3.zero,
             HeadRotation  = Quaternion.identity,
             LeftPosition  = Vector3.zero,
             LeftRotation  = Quaternion.identity,
             RightPosition = Vector3.zero,
             RightRotation = Quaternion.identity,
         }, VRMFactory, VoiceChatManager);
     }
 }