Ejemplo n.º 1
0
    public void nextWay()
    {
        int totalWay = Enum.GetNames(typeof(SEARCH_WAY)).Length;
        int iWay     = (int)curSearchWay;

        if (iWay >= (totalWay - 1))
        {
            searchImg.transform.localPosition = oriPos;
            return;
        }


        playAniAlpha ani = searchImg.GetComponent <playAniAlpha> ();

        ani.stop();

        slideAni sAni = searchImg.GetComponent <slideAni> ();

        sAni.makeShadow(oriPos);

        iWay++;
        SEARCH_WAY way = (SEARCH_WAY)iWay;

        setSearchWay(way);

        Vector3 moveDir = new Vector3(-800, 0, 0);

        sAni.playAni(moveDir, tweenSec);
    }
Ejemplo n.º 2
0
    public void preWay()
    {
        int iWay = (int)curSearchWay;

        if (iWay <= 0)
        {
            searchImg.transform.localPosition = oriPos;
            return;
        }

        playAniAlpha ani = searchImg.GetComponent <playAniAlpha> ();

        ani.stop();

        slideAni sAni = searchImg.GetComponent <slideAni> ();

        sAni.makeShadow(oriPos);

        iWay--;
        SEARCH_WAY way = (SEARCH_WAY)iWay;

        setSearchWay(way);

        Vector3 moveDir = new Vector3(800, 0, 0);

        sAni.playAni(moveDir, tweenSec);
    }
Ejemplo n.º 3
0
    private void setSearchWay(SEARCH_WAY way, bool playAni = true)
    {
        curSearchWay = way;
        playAniAlpha ani = searchImg.GetComponent <playAniAlpha> ();

        ani.setAniList(aniSprite[(int)way]);
        ani.play();

        for (int index = 0; index < dotList.Length; index++)
        {
            float scale = ((int)way == index) ? 1.5f:1.0f;

            LeanTween.scale(dotList [index], Vector3.one * scale, tweenSec);
        }
    }
Ejemplo n.º 4
0
 public void nextPage(SEARCH_WAY way)
 {
     pageMgr.Instance.nextPage(3);
 }