public void DeserializeViewComponent(NGViewStream stream)
        {
            if (IsSyncPosition)
            {
                NGLogger.LogInfo("position");
                this.transform.position = (NGVector3)stream.Receive();
            }

            if (IsSyncRotation)
            {
                NGLogger.LogInfo("IsSyncRotation");
                this.transform.rotation = (NGQuaternion)stream.Receive();
            }
        }
예제 #2
0
 public override void OnJoinedRoom()
 {
     NGLogger.LogInfo("OnJoinedRoom");
     SceneManager.LoadScene(LobbyMenu.CubeSceneName);
 }
예제 #3
0
 public override void OnOtherPlayerLeftRoom(NGPlayer player)
 {
     NGLogger.LogInfo("OnOtherPlayerLeftRoom" + player.mPeerId);
 }
예제 #4
0
 public override void OnLeftRoom()
 {
     NGLogger.LogInfo("onLeftroom");
 }