Esempio n. 1
0
    public void ClearBattleResouces()
    {
        ClickIcon.Clear();
        SurfaceManager.ClearResources();
        ModelAnimation.ClearData();
        BaseAction.ClearResources();
        this.ClearDynamicDrawerResources();
        ResourceManager.ClearResources();
        GameObject gameObject = GameObject.Find("SpawnerPool(Clone)");

        if (gameObject != null)
        {
            PoolRoot component = gameObject.GetComponent <PoolRoot>();
            if (component != null)
            {
                component.ClearResources();
            }
        }
        this.ClearBattleSceneResources(false);
        Resources.UnloadUnusedAssets();
    }