Beispiel #1
0
        protected override void Init()
        {
#if (UNITY_STANDALONE_WIN || UNITY_STANDALONE_OSX || UNITY_EDITOR)
            _detector = new PCTouchDetector();
            isMobile  = false;
#else
            _detector = new MobileTouchDetector();
            isMobile  = true;
#endif

            _eventParam = new TouchEventParam();
            ObjectPool <TouchInfo> .Instance.Init(2);
        }
Beispiel #2
0
 void Start()
 {
     Detector = new TouchDetector(new UnityMouseInput());
 }