Exemplo n.º 1
0
    public void Reset()
    {
        pause        = false;
        bStartBattle = false;
        BeginFadeOut();
        battleData.Init();         // add new init here by fangjun

        if (battleController != null)
        {
            battleController.Reset();
        }

        lockStep.StopLockStep(false);
        sceneManager.Destroy();
        battleData.Destroy();

#if !SERVER
        GameTimeManager.Get().Release();
        Resources.UnloadUnusedAssets();
                #endif

        System.GC.Collect();
    }