示例#1
0
        public StageData FindStage(StageKind kind)
        {
            StageData result;

            stages.TryGetValue(kind, out result);

            return(result);
        }
示例#2
0
        public static void ReleaseNext(StageKind kind)
        {
            if (StageKind.Last <= kind + 1)
            {
                return;
            }
            var data = StageClearDataHolder.StageClearData.Find(kind + 1);

            data.Released = true;
        }
示例#3
0
        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();
        }
示例#4
0
 public StageClearDataDetail(StageKind kind)
     : this()
 {
     StageKind = kind;
 }
示例#5
0
 public StageClearDataDetail Find(StageKind kind)
 {
     return(StageClears.Find(_ => kind == _.StageKind));
 }
示例#6
0
 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");
 }
示例#10
0
 public GameSignalingHost(MyTcpClient myTcpClient, StageKind stageKind)
 {
     this.myTcpClient = myTcpClient;
     myTcpClient.WriteData("stage_kind:" + (int)stageKind);
 }
示例#11
0
        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;
 }
示例#13
0
        async UniTask WaitGamePlay(StageKind stageKind, MatchType matchType)
        {
            await UniTask.Delay(500);

            SceneChangeManager.ChangeClientMultiPlayScene(stageKind, new MultiGameInfo(client, matchType));
        }