コード例 #1
0
ファイル: searchCtrl.cs プロジェクト: hello1988/hungry_iphone
    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);
    }
コード例 #2
0
ファイル: searchCtrl.cs プロジェクト: hello1988/hungry_iphone
    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);
    }
コード例 #3
0
ファイル: searchCtrl.cs プロジェクト: hello1988/hungry_iphone
    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);
        }
    }
コード例 #4
0
 public void nextPage(SEARCH_WAY way)
 {
     pageMgr.Instance.nextPage(3);
 }