protected override Transform InitRemoteTransform() { var body = new GameObject("PlayerCamera"); PlayerToolsManager.Init(body.transform); Player.Camera = body; return(body.transform); }
protected override Transform InitRemoteTransform() { var body = new GameObject("RemotePlayerCamera"); PlayerToolsManager.Init(body.transform); var camera = body.AddComponent <Camera>(); camera.enabled = false; var owcamera = body.AddComponent <OWCamera>(); owcamera.fieldOfView = 70; owcamera.nearClipPlane = 0.1f; owcamera.farClipPlane = 50000f; Player.Camera = owcamera; Player.CameraBody = body; return(body.transform); }