GetWorkerInstance() public static method

public static GetWorkerInstance ( ) : PSMoveWorker,
return PSMoveWorker,
Exemplo n.º 1
0
 public void Update()
 {
     if (PSMoveOffset != oldPSMoveOffset)
     {
         PSMoveWorker.GetWorkerInstance().WorkerSettings.PSMoveOffset = this.PSMoveOffset;
     }
     oldPSMoveOffset = PSMoveOffset;
 }
Exemplo n.º 2
0
    public void OnApplicationQuit()
    {
        if (ManagerInstance != null)
        {
            PSMoveWorker.GetWorkerInstance().OnGameEnded();

            ManagerInstance = null;
        }
    }
Exemplo n.º 3
0
 // Unity Callbacks
 public void Awake()
 {
     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
         });
     }
 }
Exemplo n.º 4
0
 public void ReleasePSMove(PSMoveDataContext DataContext)
 {
     PSMoveWorker.GetWorkerInstance().ReleasePSMove(DataContext);
 }
Exemplo n.º 5
0
 public PSMoveDataContext AcquirePSMove(int PSMoveID)
 {
     return(PSMoveWorker.GetWorkerInstance().AcquirePSMove(PSMoveID));
 }