Exemplo n.º 1
0
    void OnApplicationPause(bool paused)
    {
        FileLogger.FlushAllFileLoggers();

        if (!paused)
        {
            EA_FrameWorkEvents.onApplicationResumed();
        }
    }
Exemplo n.º 2
0
    public void Destroy()
    {
        Debug.Log("EASceneLogic.Destroy() frameCount:" + Time.frameCount);

        if (!EAMainFrame.isApplicationQuiting)
        {
            EA_FrameWorkEvents.onSceneWillChange();
        }

        OnClose();

        ResourceManager.instance.Clear();

        if (gameObject != null)
        {
            gameObject.transform.SetParent(null);
            GameObject.Destroy(gameObject);
        }
    }
Exemplo n.º 3
0
    void OnLazyUpdate(LazyUpdateType type)
    {
        if (EASceneLogic.instance != null)
        {
            EASceneLogic.instance.SceneLogicOnLazyUpdate(type);
        }

        EA_FrameWorkEvents.onLazyUpdate(type);

        if (type == LazyUpdateType.Every1s)
        {
            if (ClockManager.instance != null)
            {
                ClockManager.instance.UpdateClock();
            }
        }

        if (type == LazyUpdateType.Every5s)
        {
            // FileLogger.UpdateAllFileLoggers(5f);
        }
    }