Esempio n. 1
0
        protected override void Start()
        {
            base.Start();

            Reset();

            CurrentState = GameState.MainMenu;

            board.Init(OnBoardChange);
            board.SetPlayer(Seed.Empty);
            board.gameObject.SetActive(false);

            NetworkService.OnAllPlayersConnectedSignal.AddListener(OnAllPlayersConnected);
            NetworkService.OnDisconnectedFromMasterSignal.AddListener(OnDisconnectedFromMaster);
            NetworkService.OnRemoteBoardChangeSignal.AddListener(OnRemoteBoardChange);
        }