Beispiel #1
0
 void OnLevelWasLoaded()
 {
     if (DOTween.useSafeMode)
     {
         DOTween.Validate();
     }
 }
Beispiel #2
0
 private void OnSceneLoaded(Scene scene, LoadSceneMode mode)
 {
     if (DOTween.useSafeMode)
     {
         DOTween.Validate();
     }
 }
 public override void OnEnter()
 {
     DOTween.Validate();
     if (debugThis.Value)
     {
         State.Debug("DOTween Additional Methods Validate");
     }
     Finish();
 }
        public override void OnEnter()
        {
            DOTween.Validate();

            if (debugThis.Value)
            {
                Debug.Log("GameObject [" + State.Fsm.GameObjectName + "] FSM [" + State.Fsm.Name + "]  State [" + State.Name + "] - DOTween Additional Methods Validate - SUCCESS!");
            }

            Finish();
        }
Beispiel #5
0
    public void InitializeBoard()
    {
        DOTween.Clear(true);
        DOTween.ClearCachedTweens();
        DOTween.Validate();
        Time.timeScale = 1;
        mainBoard      = GameObject.FindWithTag("Board");

        CreateBoard();

        pivotPoint = GameObject.FindGameObjectWithTag("PivotPoint");

        Services.LevelEditor.selectedTileMenu.SetActive(false);;

        fsm = new FSM <LevelManager>(this);
        fsm.TransitionTo <DefaultState>();
    }
Beispiel #6
0
    public static void BeginGUI()
    {
        GUILayout.BeginArea(new Rect(10, 10, Screen.width - 20, Screen.height - 20));
        GUILayout.BeginHorizontal();
        GUILayout.FlexibleSpace();
        GUILayout.BeginVertical();

        GUILayout.BeginHorizontal();
        if (GUILayout.Button("RELOAD SCENE"))
        {
            SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex);
        }
        if (GUILayout.Button("VALIDATE TWEENS"))
        {
            Debug.Log("Invalid tweens found: " + DOTween.Validate());
        }
        GUILayout.EndHorizontal();
    }
Beispiel #7
0
    public static void BeginGUI()
    {
        GUILayout.BeginArea(new Rect(10, 10, Screen.width - 20, Screen.height - 20));
        GUILayout.BeginHorizontal();
        GUILayout.FlexibleSpace();
        GUILayout.BeginVertical();

        GUILayout.BeginHorizontal();
        if (GUILayout.Button("RELOAD SCENE"))
        {
            Application.LoadLevel(Application.loadedLevel);
        }
        if (GUILayout.Button("VALIDATE TWEENS"))
        {
            Debug.Log("Invalid tweens found: " + DOTween.Validate());
        }
        GUILayout.EndHorizontal();
    }
        public override void OnEnter()
        {
            switch (clearType)
            {
            case clearSelect.Clear:
                DOTween.Clear(clearDestroy.Value);
                break;

            case clearSelect.ClearCachedTween:
                DOTween.ClearCachedTweens();
                break;

            case clearSelect.Validate:
                DOTween.Validate();
                break;
            }



            Finish();
        }
Beispiel #9
0
 public override void OnEnter()
 {
     DOTween.Validate();
     Finish();
 }