예제 #1
0
    public IEnumerator setNavigation(int index)
    {
        floor.sprite = spriteList [index];

        if (index <= (arrowSprite.Length - 1))
        {
            arrow.gameObject.SetActive(true);
            arrow.sprite = arrowSprite[index];
            arrow.SetNativeSize();
            arrow.transform.localPosition = arrowPosList[index];

            tweenAlpha tween = arrow.GetComponent <tweenAlpha> ();
            tween.play();
        }
        else
        {
            arrow.gameObject.SetActive(false);
        }

        if (spriteIndex >= (spriteList.Length - 1))
        {
            showHomeBtn();
        }

        yield return(new WaitForSeconds(swapSec));

        nextNavigation();
    }
예제 #2
0
    public void init()
    {
        tweenAlpha ani = wifi.GetComponent <tweenAlpha> ();

        ani.play();
    }