コード例 #1
0
ファイル: Program.cs プロジェクト: naaturaz/SM
    public static void KillGame()
    {
        if (PersonPot.Control != null)
        {
            PersonPot.Control.ClearAll();
        }

        //ManagerReport.FinishAllReports("NewMap");

        if (!ClassContainer)
        {
            return;
        }

        ClassContainer.Destroy();
        BuildsContainer.Destroy();
        PersonObjectContainer.Destroy();
        MeshBatchContainer.Destroy();

        if (!gameScene)
        {
            return;
        }

        gameScene.QuestManager.ResetNewGame();

        gameScene.Destroy();
        gameScene = null;
        InputMain.Destroy();

        GameController.ResumenInventory1.GameInventory.Delete();
    }