コード例 #1
0
ファイル: PopupManager.cs プロジェクト: isahakv/TetrisGame
    public void OpenLoading(string title, string message)
    {
        if (commandQueue.Count > 0)
        {
            commandQueue.First.Value.UnExecute();
        }

        PopupLoadingCommand loadingCommand = new PopupLoadingCommand(PopupLoadingInstance, message, title);

        commandQueue.AddFirst(loadingCommand);
        loadingCommand.Execute();
    }
コード例 #2
0
ファイル: PopupManager.cs プロジェクト: isahakv/TetrisGame
    public void CloseLoading()
    {
        PopupLoadingCommand loadingCommand = (PopupLoadingCommand)(commandQueue.First.Value);

        if (loadingCommand == null)
        {
            return;
        }

        commandQueue.RemoveFirst();
        loadingCommand.UnExecute();

        // Execute next command, if there is.
        ExecuteNextCommand();
    }