Example #1
0
    public void UpdateOverviewWorld()
    {
        GameWorld gameWorld = GameWorlds.Current;

        if (gameWorld == null)
        {
            return;
        }

        foreach (GameObjectInactive obj in containerOverview.GetList <GameObjectInactive>())
        {
            if (obj.type == BaseDataObjectKeys.overview &&
                obj.code == BaseDataObjectKeys.world)
            {
                foreach (GameObjectInactive world in containerOverview.GetList <GameObjectInactive>())
                {
                    if (world.type == BaseDataObjectKeys.world)
                    {
                        TweenUtil.HideObjectBottom(world.gameObject);
                    }
                }

                foreach (GameObjectInactive world in containerOverview.GetList <GameObjectInactive>())
                {
                    if (world.code.IsEqualLowercase(gameWorld.code))
                    {
                        TweenUtil.ShowObjectBottom(world.gameObject);
                    }
                }
            }
        }
    }
Example #2
0
    public IEnumerator showUICo()
    {
        yield return(new WaitForSeconds(.55f));

        TweenUtil.ShowObjectBottom(backgroundUI, TweenCoord.local, true);

        //Debug.Log("GameUIPanelBackgrounds::ShowUICo");
    }
Example #3
0
    public virtual void showActionTools()
    {
        if (Context.Current.isWeb)
        {
            return;
        }

        TweenUtil.ShowObjectBottom(containerActionTools);
    }
Example #4
0
    //

    public virtual void ShowShare(string code)
    {
        foreach (GameObjectShowItem item in
                 containerShares.GetComponentsInChildren <GameObjectShowItem>(true))
        {
            if (item.code == code)
            {
                HideAllShares();
                TweenUtil.ShowObjectBottom(item.gameObject);
                item.gameObject.ShowObjectDelayed(.7f);
            }
        }
    }
    public virtual void ShowButtons(string code, bool hideCurrent = true)
    {
        AnimateIn();

        if (containerButtons == null)
        {
            return;
        }

        foreach (GameObjectShowItem item in
                 containerButtons.GetComponentsInChildren <GameObjectShowItem>(true))
        {
            if (item.code == code)
            {
                if (hideCurrent)
                {
                    HideAllButtons();
                }
                TweenUtil.ShowObjectBottom(item.gameObject);
                item.gameObject.ShowObjectDelayed(.7f);
                currentButtonCode = code;
            }
        }
    }
 public virtual void ShowOverlayBlack(float time, float delay)
 {
     TweenUtil.ShowObjectBottom(overlayBlackSolid, TweenCoord.local, true, time, delay);
 }
 public virtual void ShowOverlayWhiteRadial(float time, float delay)
 {
     TweenUtil.ShowObjectBottom(overlayWhiteRadial, TweenCoord.local, true, time, delay);
 }
Example #8
0
 public virtual void AnimateInBottom(GameObject go, float time = .5f, float delay = .5f, bool fade = true)
 {
     TweenUtil.ShowObjectBottom(go, TweenCoord.local, fade, time, delay);
 }
Example #9
0
 public virtual void ShowButtons()
 {
     TweenUtil.ShowObjectBottom(containerButtons);
 }
Example #10
0
 public virtual void ShowSelect()
 {
     TweenUtil.ShowObjectBottom(containerMissions);
 }
Example #11
0
 public virtual void ShowWorldsContainer()
 {
     containerWorlds.Show();
     TweenUtil.ShowObjectBottom(containerWorlds);
 }