예제 #1
0
 /// <summary>
 /// Initialize the sixense driver and allocate the controllers.
 /// </summary>
 void Start()
 {
     SixensePlugin.sixenseInit();
     for (int i = 0; i < MAX_CONTROLLERS; i++)
     {
         m_Controllers[i] = new Controller();
     }
 }
예제 #2
0
    /// <summary>
    /// Initialize the sixense driver and allocate the controllers.
    /// </summary>
    void Start()
    {
        SixensePlugin.sixenseInit();

        for (int i = 0; i < MAX_CONTROLLERS; i++)
        {
            m_Controllers[i] = new Controller();
        }

        // don't let the mobile device sleep
        Screen.sleepTimeout = SleepTimeout.NeverSleep;
    }
예제 #3
0
    /// <summary>
    /// Initialize the sixense driver and allocate the controllers.
    /// </summary>
    void Awake()
    {
        SixensePlugin.sixenseInit();

        for (int i = 0; i < MAX_CONTROLLERS; i++)
        {
            m_Controllers[i] = new Controller();
        }

        Controllers[0].HandBind = SixenseHands.RIGHT;
        Controllers[1].HandBind = SixenseHands.LEFT;
    }
예제 #4
0
        public static void Start()
        {
            status = Status.Unavailable;

            SixensePlugin.sixenseInit();
            for (int i = 0; i < MAX_CONTROLLERS; i++)
            {
                m_Controllers[i] = new Controller();
            }
            dllPresent = true;

            started = true;

            bool baseConnected = SixensePlugin.sixenseIsBaseConnected(0) > 0;

            if (dllPresent && baseConnected)
            {
                status = Status.Present;
            }
        }