예제 #1
0
        //Photon ルーム入ってるの確認後
        private async void GameSceneSecondSettings()
        {
            var token = this.GetCancellationTokenOnDestroy();

            roomManager.SetPlayerInfo();
            playerManager.SetPlayerInfo();

            //ここで全員そろえる
            _rpcState.MyRPCStateSet(RPCAwaitStateList.PlayerInstance);
            await UniTask.WaitUntil(() => _rpcState.RoomRPCAwaitState == RPCAwaitStateList.PlayerInstance, cancellationToken : token);

            scoreManager.SetField();
            _flagManager.SetField();

            _digPointGenerator = FindObjectOfType <DigPointGenerator>();
            _digPointGenerator.DigPointGenerate(token).Forget();

            //ここで全員そろえる
            _rpcState.MyRPCStateSet(RPCAwaitStateList.FirstInMain);
            await UniTask.WaitUntil(() => _rpcState.RoomRPCAwaitState == RPCAwaitStateList.First, cancellationToken : token);

            Debug.Log("StartSettingsState");



            Game();
        }