Beispiel #1
0
    public void OnLowMemory()
    {
        Logger.Debug("----------OnLowMemory-------");

        if (null != UIManager.Instance)
        {
            UIManager.Instance.DestoryCloseUi();
        }

        ComplexObjectPool.DestroyUnusedObject();

        if (null != ResourceManager.Instance)
        {
            ResourceManager.Instance.ClearCache(true);
        }

        Resources.UnloadUnusedAssets();
        System.GC.Collect();
    }