public virtual void NoReborn()
 {
     StopCoroutine(DORebornCountDown());
     if (GameStateManager.CurrentState == GameState.GameOver)
     {
         animContinue.Hide(() =>
         {
             Debug.Log("animContinue: Hide - GameStateManager: " + GameStateManager.CurrentState);
             if (GameStateManager.CurrentState == GameState.GameOver)
             {
                 ShowResult();
             }
         });
     }
 }
    public IEnumerator LoadGameData()
    {
        yield return(DataManager.DoLoad());

        while (userData == null)
        {
            DebugMode.Log("Load game data...");
            yield return(null);
        }

        yield return(FirebaseHelper.DoCheckStatus(null, true));

        if (userData.VersionInstall == 0)
        {
            userData.VersionInstall = UIManager.BundleVersion;
        }
        userData.VersionCurrent = UIManager.BundleVersion;


        GameStateManager.LoadMain(null);

        while ((int)(DateTime.Now - startLoadTime).TotalSeconds < waitTimeForLoadAd)
        {
            yield return(null);
        }

        if (gameConfig.suggestUpdateVersion > userData.VersionCurrent)
        {
            ForeUpdate();
        }
        else
        {
            splashScreen?.Hide();
            mainScreen.Show(null, () =>
            {
                GameStateManager.Idle(null);
            });
        }

        int loadGameIn = (int)(DateTime.Now - startLoadTime).TotalSeconds;

        Debug.Log("loadGameIn: " + loadGameIn + "s");
    }
 public void Hide(Action onHideDone = null)
 {
     Status = UIAnimStatus.IsAnimationHide;
     animResult.Hide();
     animContinue.Hide();
     anim.Hide(() =>
     {
         onHideDone?.Invoke();
         Status = UIAnimStatus.IsHide;
     });
 }
Ejemplo n.º 4
0
 public void HideAnimation(LuaFunction func)
 {
     if (hideCallBack != null && hideCallBack != func)
     {
         hideCallBack.Dispose();
     }
     hideCallBack = func;
     if (uiAnimation != null)
     {
         uiAnimation.Hide();
     }
 }
Ejemplo n.º 5
0
        public void OnPointerUp()
        {
            if (Time.time >= touchStartTime + DisposeTouchTime)
            {
                toolIcon.sprite = buttonSpriteSet.normal;

                if (!ToolsManager.Instance.IsToolRunning(toolID))
                {
                    Tween hideTween = uiAnimation.Hide();
                    hideTween.OnComplete(() =>
                    {
                        Destroy(this);
                        OnDisposed.Invoke();
                    });
                }
            }
        }
Ejemplo n.º 6
0
 public override void OnInspectorGUI()
 {
     base.OnInspectorGUI();
     if (Application.isPlaying)
     {
         EditorGUILayout.BeginHorizontal();
         EditorHelper.DrawButton(true, STATE_SHOW, () =>
         {
             UIAnimation.Show();
         });
         EditorHelper.DrawButton(true, STATE_HIDE, () =>
         {
             UIAnimation.Hide();
         });
         EditorGUILayout.EndHorizontal();
     }
 }
Ejemplo n.º 7
0
 public void Hide()
 {
     anim.Hide();
 }
Ejemplo n.º 8
0
        public void HideBackgroundBlocker()
        {
            Tween hideTween = backgroundBlockerAnimation.Hide();

            hideTween.OnComplete(backgroundBlockerAnimation.Deactivate);
        }
Ejemplo n.º 9
0
        public void HideLoadingIndicator()
        {
            Tween hideTween = backgroundBlockerAnimation?.Hide();

            hideTween?.OnComplete(() => loadingIndicator.gameObject.SetActive(false));
        }