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(); } }
public override void OnJoinedRoom() { NGLogger.LogInfo("OnJoinedRoom"); SceneManager.LoadScene(LobbyMenu.CubeSceneName); }
public override void OnOtherPlayerLeftRoom(NGPlayer player) { NGLogger.LogInfo("OnOtherPlayerLeftRoom" + player.mPeerId); }
public override void OnLeftRoom() { NGLogger.LogInfo("onLeftroom"); }