public void RenderBoard() { BoardMgr mgr = ((AppContext)_ctx).GetBoardMgr(); UIRoot muiroot = _uiroot.GetComponent <UIRoot>(); muiroot.SetBoard(mgr.BoardMsg); }
private void Init() { mgr = new BoardMgr(); mgr.BoardInit(); SetHisStepsDefaults(); SetIntervalDefaults(); LoadCheckBoxList(); mgr.SetHistoryNunberOfSteps(Convert.ToInt32(numUpDwn.Value)); }
void Awake() { if(instance == null){ instance = this; }else if(instance != this){ Destroy(gameObject); } DontDestroyOnLoad(gameObject); bdmgrScript = GetComponent<BoardMgr>(); }
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)); }