示例#1
0
    //----- implementation -----

    // Called to start a game previously selected
    void Launch(GameBoardModel model)
    {
        if (model == null)
        {
            return;
        }
        SetState(GameState.NewGame);
        _model = model;
        // reset AI params
        _model.ThinkTime = ThinkTime;
        _model.StepCount = StepCount;
        _model.MaxDepth  = MaxDepth;
        _uimx.CloseCurrent();
        StartCoroutine(FadeAndGo());
    }
 public void CloseButtonHandler(string input = "click")
 {
     _uimx.DoButtonAction(input, "Close", StatusbarText, () => _uimx.CloseCurrent());
 }