internal void BindPlayer(int playerID) { Assert.IsFalse(isBoundToClient); Assert.IsNull(_config); this.playerID = playerID; _config = AirVRServerPlugin.GetConfig(playerID); Assert.IsNotNull(_config); }
private AirVRCameraRig notifyCameraRigWillBeBound(int playerID) { AirVRClientConfig config = AirVRServerPlugin.GetConfig(playerID); List <AirVRCameraRig> cameraRigs = new List <AirVRCameraRig>(); _cameraRigList.GetAvailableCameraRigs(config.type, cameraRigs); AirVRCameraRig selected = null; if (Delegate != null) { Delegate.AirVRCameraRigWillBeBound(playerID, config, cameraRigs, out selected); AirVRServerPlugin.SetConfig(playerID, config); } else if (cameraRigs.Count > 0) { selected = cameraRigs[0]; } return(selected); }