/* public void Init(SwipeMove swipeMove) * { * _swipeMove = swipeMove; * * }*/ void Start() { Instance = this; _collider2D = GetComponent <BoxCollider2D>(); switch (SystemInfo.deviceType) { case DeviceType.Handheld: _checkTouch = CheckHandheldTouch; break; case DeviceType.Desktop: _checkTouch = CheckDesktopTouch; break; default: _checkTouch = CheckDesktopTouch; break; } }
// Use this for initialization void Start() { lastPointsLost = -minTimeForPointLoosing; touch = GetComponent<CheckTouch> (); }
// Use this for initialization void Start() { lastPointsLost = -minTimeForPointLoosing; touch = GetComponent <CheckTouch> (); }