Ejemplo n.º 1
0
        public void RenderBoard()
        {
            BoardMgr mgr = ((AppContext)_ctx).GetBoardMgr();

            UIRoot muiroot = _uiroot.GetComponent <UIRoot>();

            muiroot.SetBoard(mgr.BoardMsg);
        }
Ejemplo n.º 2
0
 private void Init()
 {
     mgr = new BoardMgr();
     mgr.BoardInit();
     SetHisStepsDefaults();
     SetIntervalDefaults();
     LoadCheckBoxList();
     mgr.SetHistoryNunberOfSteps(Convert.ToInt32(numUpDwn.Value));
 }
Ejemplo n.º 3
0
    void Awake()
    {
        if(instance == null){
            instance = this;
        }else if(instance != this){
           Destroy(gameObject);
        }
        DontDestroyOnLoad(gameObject);

         bdmgrScript = GetComponent<BoardMgr>();
    }
Ejemplo n.º 4
0
        public AppContext(Application application, Config config, TimeSync ts) : base(application, config, ts)
        {
            _entitymgr = new EntityMgr();
            _boardmgr  = new BoardMgr(this);
            _tipsmgr   = new TipsMgr(this);

            _request  = new Request(this, _client);
            _response = new Response(this, _client);

            RegService(InitService.Name, new InitService(this));
            RegService(GameService.Name, new GameService(this));
            RegService(PlayService.Name, new PlayService(this));

            Push(typeof(StartController));
        }