GetManagerInstance() public static method

public static GetManagerInstance ( ) : PSMoveManager,
return PSMoveManager,
Esempio n. 1
0
 public void OnDestroy()
 {
     if (PSMoveManager.GetManagerInstance() != null)
     {
         PSMoveManager.GetManagerInstance().ReleasePSMove(dataContext);
     }
 }
Esempio n. 2
0
        protected sealed override void Update(GameTime gameTime)
        {
            base.Update(gameTime);
            if (UsePsMove)
            {
                PSMoveManager.GetManagerInstance().Update();
                PsMoveController.Update();
            }
            if (firstUpdate)
            {
                firstUpdate  = false;
                workerThread = new Thread(() =>
                {
                    while (IsRunning)
                    {
                        //Thread.Sleep(100);
                        UpdateAsync();
                        //Console.WriteLine("b" + Time.ElapsedGameTime.TotalSeconds);

                        //
                    }
                });

                workerThread.Start();
            }
        }
Esempio n. 3
0
 /// <summary>
 /// NOTE! This function does NOT pair the controller by Bluetooth.
 /// If the controller is not already paired, it can only be connected by USB.
 /// See README for more information.
 /// </summary>
 public void Start()
 {
     if (PSMoveManager.GetManagerInstance() != null)
     {
         dataContext = PSMoveManager.GetManagerInstance().AcquirePSMove(this.PSMoveID);
     }
 }
Esempio n. 4
0
 void move_OnButtonPSPressed(object sender, EventArgs e)
 {
     Debug.Log("PS button pressed");
     PSMoveManager.GetManagerInstance().AlignToCenterEye(transform, Camera.main.transform);
 }