Пример #1
0
    /*   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> ();
 }
Пример #3
0
 // Use this for initialization
 void Start()
 {
     lastPointsLost = -minTimeForPointLoosing;
     touch          = GetComponent <CheckTouch> ();
 }