public async void FlagSteelInterval(bool haveInterval) { if (!haveInterval) { return; } CancellationToken token = new CancellationToken(); await _punTimer.TimerAsync(Interval, token); PunSettings.PropertiesManager.PlayerCustomPropertiesSettings(false, PunSettings.PropertiesKeyList.FlagIntervalKey, PhotonNetwork.LocalPlayer); }
//Game進行 private async void Game() { CancellationToken token = this.GetCancellationTokenOnDestroy(); await UniTask.Delay(ImageShowTimeMilli, cancellationToken : token); loadPanel.SetActive(false); //前半戦スタート BGMManager.Instance.Play(BGMPath.PORT_BGM); startimage.SetActive(true); firstAdvice.SetActive(true); Debug.Log("startTrue"); FirstTimer = new PunTimer(); await FirstTimer.TimerAsync(TimeLimit, timerText, token); //前半戦終了後後処理 if ((int)RPCAwaitStateList.FirstInMain == (int)PhotonNetwork.LocalPlayer.CustomProperties[PunSettings.PropertiesKeyList.PlayerStateKey]) { _rpcState.MyRPCStateSet(RPCAwaitStateList.SecondInMain); } else if ((int)RPCAwaitStateList.FirstInRoom == (int)PhotonNetwork.LocalPlayer.CustomProperties[PunSettings.PropertiesKeyList.PlayerStateKey]) { _rpcState.MyRPCStateSet(RPCAwaitStateList.SecondInRoom); } if (PhotonNetwork.LocalPlayer.CustomProperties[PunSettings.PropertiesKeyList.RoomGateKey] == null) { new RoomGateMaker().MakeRoom(playerManager.myPlayerObj.transform, goodsTable); playerManager.haveMerchandise.ThrowItem(MerchandiseInfo.MerchandiseEnum.RoomMaker); } //後半戦準備 BGMManager.Instance.Play(BGMPath.SUNRISE); secondAdvice.SetActive(true); _flagManager.SecondSetField(); //後半戦 SecondTimer = new PunTimer(); await SecondTimer.TimerAsync(TimeLimit, timerText, token); Result(); }