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); }
void Start() { Detector = new TouchDetector(new UnityMouseInput()); }