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(); }
public void init() { tweenAlpha ani = wifi.GetComponent <tweenAlpha> (); ani.play(); }