Ejemplo n.º 1
0
        void Start()
        {
            m_loadScene = GetComponent <LoadSceneAsync>();

            Sequence seq = DOTween.Sequence();

            seq.Append(m_insertCoinText.DOFade(0f, 0.5f));
            seq.Append(m_insertCoinText.DOFade(1f, 0.5f));
            seq.SetLoops(-1);
        }
Ejemplo n.º 2
0
    private void Awake()
    {
        if (Instance != null)
        {
            Destroy(this.gameObject);
        }
        else
        {
            Instance = this;
            DontDestroyOnLoad(this.gameObject);
        }

        _fadeImage.color = new Color(0, 0, 0, 0);
    }
Ejemplo n.º 3
0
    public void LoadScene(string sceneName, bool withLoading = true)
    {
        if (withLoading)
        {
            LoadSceneAsync.LoadScene(sceneName);
        }
        else
        {
            SceneManager.LoadScene(sceneName);
        }

        if (SceneManager.GetActiveScene().name == "Arena")
        {
            afterBattle = true;
        }

        MasterManager.ManagerGlobalData.SaveAllData();
    }
Ejemplo n.º 4
0
 public void LoadScene(string name)
 {
     LoadSceneAsync.LoadScene(name);
     // SceneManager.LoadScene(name);
 }