Beispiel #1
0
        public void Dispose()
        {
            if (ManagerInstance != null)
            {
                PSMoveWorker.GetWorkerInstance().OnGameEnded();

                ManagerInstance = null;
            }
        }
Beispiel #2
0
        public static PSMoveWorker GetWorkerInstance()
        {
            if (WorkerInstance == null)
            {
                WorkerInstance = new PSMoveWorker();
            }

            return(WorkerInstance);
        }
Beispiel #3
0
 // Unity Callbacks
 public void Initialize()
 {
     if (ManagerInstance == null)
     {
         ManagerInstance = this;
         PSMoveHitchWatchdog.EmitHitchLogging = this.EmitHitchLogging;
         PSMoveWorker.GetWorkerInstance().OnGameStarted(
             new PSMoveWorkerSettings()
         {
             bUseManualExposure   = this.UseManualExposure,
             ManualExposureValue  = this.ManualExposureValue,
             InitialTrackingColor = this.InitialTrackingColor,
             PSMoveOffset         = this.PSMoveOffset,
             Filter3DType         = this.Filter3DType,
             bTrackerEnabled      = this.TrackerEnabled,
             //ApplicationDataPath = Application.dataPath
         });
     }
 }
Beispiel #4
0
 public void ReleasePSMove(PSMoveDataContext DataContext)
 {
     PSMoveWorker.GetWorkerInstance().ReleasePSMove(DataContext);
 }
Beispiel #5
0
 public PSMoveDataContext AcquirePSMove(int PSMoveID)
 {
     return(PSMoveWorker.GetWorkerInstance().AcquirePSMove(PSMoveID));
 }
Beispiel #6
0
 public void OnGameEnded()
 {
     WorkerTeardown();
     WorkerInstance = null;
 }
Beispiel #7
0
 public void Update()
 {
     PSMoveWorker.GetWorkerInstance().WorkerSettings.PSMoveOffset = this.PSMoveOffset;
 }