private void Start() { ExceptionHandle.SetupExceptionHandling(); if (SceneTransporter.CurrentGame == null) { SceneManager.LoadScene("Scene/TestScene"); return; } State = GameManagerState.Unknown; StartCoroutine(Init()); }
void Start() { ExceptionHandle.SetupExceptionHandling(); if (SceneTransporter.CurrentGame == null) { SceneManager.LoadScene("Scene/TestScene"); return; } LoadingGo.SetActive(true); StartCoroutine(SceneTransporter.Server.RefreshBoard(SceneTransporter.CurrentGame, () => { CurrentPlayerBoardIndex = SceneTransporter.CurrentGame.MyPlayerIndex; BoardDisplay.Refresh(); ActionBinder.BindAction(SceneTransporter.CurrentGame.PossibleActions, this); LoadingGo.SetActive(false); })); }