コード例 #1
0
ファイル: Controls.cs プロジェクト: ajohn104/BarrierToEntry
        public Tracker controllerRight;     // Moved to Controls; used with player input

        /* 
         * Note to self: careful with swapping hands, as the input 
         * controls (with the thumbsticks, buttons, and such) should
         * stay the same. Only the saber placement should change.
         * That's not to say that controls shouldn't be customizable.
        */

        public Controls(Device deviceBase, Player player)
        {
            this.owner = player;
            this.device = deviceBase;
            InputCheck();
        }
コード例 #2
0
ファイル: Tracker.cs プロジェクト: ajohn104/BarrierToEntry
        /// <summary>
        /// Called by SixenseCore.Device
        /// </summary>
        internal Tracker(Device device, int index)
        {
            m_device = device;
            m_Index = index;

            m_pastData = new PluginTypes.TrackedDeviceData[Device.HistorySize];
        }
コード例 #3
0
 private void Start()
 {
     device = coreDevice.GetComponent <SixenseCore.Device>();
     WorldAnchorStore.GetAsync(AnchorStoreReady);
 }