Beispiel #1
0
    void Start()
    {
        slideDectect dect = faceImg.GetComponent <slideDectect> ();

        dect.registCallBack(DIRECTION.LEFT, nextFace);
        dect.registCallBack(DIRECTION.RIGHT, preFace);
    }
Beispiel #2
0
    void Start()
    {
        slideDectect dect = GetComponent <slideDectect> ();

        dect.registCallBack(DIRECTION.LEFT, slideLeft);
        dect.registCallBack(DIRECTION.RIGHT, slideRight);
    }
Beispiel #3
0
    void Start()
    {
        slideDectect dect = menuNameImg.GetComponent <slideDectect> ();

        dect.registCallBack(DIRECTION.UP, nextMenu);
        dect.registCallBack(DIRECTION.DOWN, preMenu);
    }