public StageData FindStage(StageKind kind) { StageData result; stages.TryGetValue(kind, out result); return(result); }
public static void ReleaseNext(StageKind kind) { if (StageKind.Last <= kind + 1) { return; } var data = StageClearDataHolder.StageClearData.Find(kind + 1); data.Released = true; }
public TileMapInfo Create(StageKind stageKind) { switch (stageKind) { case StageKind.TestStage: return(Instantiate(testStage)); case StageKind.Stage1: return(Instantiate(stage1)); break; case StageKind.Stage2: return(Instantiate(stage2)); case StageKind.Stage3: return(Instantiate(stage3)); default: throw new ArgumentOutOfRangeException(nameof(stageKind), stageKind, null); } throw new NotImplementedException(); }
public StageClearDataDetail(StageKind kind) : this() { StageKind = kind; }
public StageClearDataDetail Find(StageKind kind) { return(StageClears.Find(_ => kind == _.StageKind)); }
public StageData Select(StageKind stage) { return(stages.Find(_ => _.stage == stage)); }
//選択ステージ種別をセットする public static void SetSelectedStageKind(StageKind stageKind) { selectedStageKind = stageKind; }
//クライアント側がマルチプレイゲーム画面へ移動する public static void ChangeClientMultiPlayScene(StageKind stageKind, MultiGameInfo multiGameInfo) { SelectedStageData.SetSelectedStageKind(stageKind); StartGameInfo.StartGameInfo.SetMultiPlay(multiGameInfo); SceneManager.LoadScene("SinglePlayGameScene"); }
//プレイゲーム画面へ移動する public static void ChangePlayScene(StageKind stageKind) { SelectedStageData.SetSelectedStageKind(stageKind); SceneManager.LoadScene("SinglePlayGameScene"); }
public GameSignalingHost(MyTcpClient myTcpClient, StageKind stageKind) { this.myTcpClient = myTcpClient; myTcpClient.WriteData("stage_kind:" + (int)stageKind); }
public static void Release(StageKind kind) { var data = StageClearDataHolder.StageClearData.Find(kind); data.Released = true; }
public MatchingData(StageKind stageKind) { MatchingDataType = MatchingDataType.StageDeterminedData; _stageKind = stageKind; _matchType = null; }
async UniTask WaitGamePlay(StageKind stageKind, MatchType matchType) { await UniTask.Delay(500); SceneChangeManager.ChangeClientMultiPlayScene(stageKind, new MultiGameInfo(client, matchType)); }