コード例 #1
0
 private void CreateTouches()
 {
     cachedTouches         = new TouchPool();
     mouseTouch            = new Touch();
     mouseTouch.fingerId   = Touch.FingerID_Mouse;
     activeTouches         = new List <Touch>(32);
     readOnlyActiveTouches = new ReadOnlyCollection <Touch>(activeTouches);
 }
コード例 #2
0
 void Reset()
 {
     device                = null;
     mouseTouch            = null;
     cachedTouches         = null;
     activeTouches         = null;
     readOnlyActiveTouches = null;
     touchControls         = null;
     OnSetup               = null;
 }
コード例 #3
0
 private void Reset()
 {
     device                = null;
     mouseTouch            = null;
     cachedTouches         = null;
     activeTouches         = null;
     readOnlyActiveTouches = null;
     touchControls         = null;
     TouchManager.OnSetup  = null;
 }
コード例 #4
0
        void CreateTouches()
        {
            cachedTouches = new TouchPool();

            for (var i = 0; i < 3; i++)
            {
                mouseTouches[i]          = new Touch();
                mouseTouches[i].fingerId = Touch.FingerID_Mouse;
            }

            activeTouches         = new List <Touch>(32);
            readOnlyActiveTouches = new ReadOnlyCollection <Touch>(activeTouches);
        }
コード例 #5
0
        void Reset()
        {
            device = null;

            for (var i = 0; i < 3; i++)
            {
                mouseTouches[i] = null;
            }

            cachedTouches         = null;
            activeTouches         = null;
            readOnlyActiveTouches = null;
            touchControls         = null;
            OnSetup = null;
        }