Beispiel #1
0
    private IEnumerator stageClear()
    {
        staticValueManagerS sVMS = staticValueManagerGetter.getManager();

        GMS.talkingPartLoader("0-3-0-4");

        //引き続きコライダーは停止
        GMS.setAllCollider2DEnabale(false);

        yield return(new WaitForSeconds(0.2f));

        Time.timeScale = 1;             //パーティクルを使うため1にする

        GameObject tmpGO = (GameObject)Instantiate(_stageClearCaption);

        while (tmpGO != null)
        {
            yield return(null);
        }

        sceneChangeValue sceneCV = sVMS.getNowSceneChangeValue();

        GMS.saveBattleResultValues();

        //0-3-0-5
        sVMS.setStoryProgress("0-3-0-5");
        sVMS.changeScene(sceneChangeStatusEnum.gotoTalkScene);
    }
Beispiel #2
0
    /*
     *
     * void Update(){
     *      if (Input.GetKeyDown (KeyCode.Z)) {
     *              //debuf
     *              //this.OnTriggerStay2D(null);
     *      }
     * }
     *
     * void OnTriggerStay2D(Collider2D argsCo){
     *      //Debug.Log ("Enter Collider");
     *
     *      //このコライダー停止
     *      Destroy (this.gameObject.GetComponent<BoxCollider2D> ());  //.enabled = false;
     *
     *      //GMS.talkingPartLoader ("0-3-0-3");
     *
     * }
     *
     */



    private IEnumerator stageClear()
    {
        staticValueManagerS sVMS = staticValueManagerGetter.getManager();

        //引き続きコライダーは停止
        GMS.setAllCollider2DEnabale(false);

        Time.timeScale = 1;             //パーティクルを使うため1にする

        GameObject tmpGO = (GameObject)Instantiate(_stageClearCaption);

        while (tmpGO != null)
        {
            yield return(null);
        }

        sceneChangeValue sceneCV = sVMS.getNowSceneChangeValue();

        //
        sVMS.addStoryProgresses(enum_StoryProgressType.Step);

        //新規キャラの追加
        GMS.saveBattleResultValues_EnterCharacterFlag(enumCharaNum.suzusiro_03, true, enumCharactorJoinType.sameEnju);

        GMS.saveBattleResultValues();
        //Debug.Log ("gotoStageSelect");
        //sVMS.changeScene (sceneChangeStatusEnum.gotoStageSelect);

        sVMS.setStoryProgress("0-6-0-2");
        sVMS.changeScene(sceneChangeStatusEnum.gotoTalkScene);
    }
	//
	//
	private void setNextScene(string argsStr){
		//"<nextScene:[tbs]{1}:[.]+>";
		string tagMain = argsStr.Substring (1, (argsStr.Length-2));		//各個の消去
		string[] spritStr = tagMain.Split(new string[]{":"}, System.StringSplitOptions.None);	//sprit
		
		string argsNextSceneType = spritStr[1];
		string argsOption = spritStr[2];

		//Debug.Log (argsNextSceneType + argsOption);

		switch (argsNextSceneType) {
		case "t":
			//トークScene
			//トークシーンからトークシーンに移動するため、第2引数は特に不要
			//自動的にステップ1追加

			sVMS.addStoryProgresses(enum_StoryProgressType.Step);

			sVMS.changeScene(sceneChangeStatusEnum.gotoTalkScene);
			
			break;

		case "b":
			//バトル
			//会話パートからは、シーン名直接指定
			//sceneChangeValue tmpBtlVal = sVMS.getNowSceneChangeValue();
			//tmpBtlVal.sceneFileName = argsOption;
			
			sVMS.changeScene(sceneChangeStatusEnum.gotoBattle);

			break;
		case "s":
			//ステージセレクト
			sVMS.changeScene(sceneChangeStatusEnum.gotoStageSelect);

			break;
		}
	}
    IEnumerator selectedSaveData()
    {
        boubleTapFlag = true;
        yield return(new WaitForSeconds(0.1f));

        staticValueManagerS sVMS = staticValueManagerGetter.getManager();

        int tmpProgress = sVMS.getStoryProgress();

        switch (tmpProgress)
        {
        case 7:
            sVMS.addStoryProgresses(enum_StoryProgressType.Step, true);
            sVMS.changeScene(sceneChangeStatusEnum.gotoTalkScene);
            break;

        default:
            sVMS.changeScene(sceneChangeStatusEnum.gotoBattle);
            break;
        }

        boubleTapFlag = false;
    }
Beispiel #5
0
    public void OnMouseDown()
    {
        tgtStage = sSMS.getSelecedStageVal();

        if (tgtStage == null)
        {
            //return;
            Debug.Log("return!");
            return;
        }
        //tgtStage.


        sVMS.changeScene(sceneChangeStatusEnum.gotoSortieSelect);
    }
    IEnumerator selectedSaveData()
    {
        boubleTapFlag = true;
        yield return(new WaitForSeconds(0.1f));

        staticValueManagerS sSMS = staticValueManagerGetter.getManager();

        //セーブデータの選択
        if (selectedSaveIndex == -1)
        {
            //new Game
            sSMS.createNewGameData();
        }
        else
        {
            sSMS.setSelectedSaveDat(selectedSaveIndex);
        }

        sSMS.changeScene(sceneChangeStatusEnum.dataLoading);
        boubleTapFlag = false;
    }
Beispiel #7
0
    private IEnumerator missionFailure()
    {
        staticValueManagerS sVMS = staticValueManagerGetter.getManager();

        //コライダーは停止
        GMS.setAllCollider2DEnabale(false);

        yield return(new WaitForSeconds(0.1f));

        Time.timeScale = 1;             //パーティクルを使うため1にする

        GameObject tmpGO = (GameObject)Instantiate(_stageFailure);

        while (tmpGO != null)
        {
            yield return(null);
        }

        //ステップをリセット
        sVMS.addStoryProgresses(enum_StoryProgressType.Step, true);
        sVMS.changeScene(sceneChangeStatusEnum.gotoStageSelect);
    }
Beispiel #8
0
    private IEnumerator stageClear()
    {
        staticValueManagerS sVMS = staticValueManagerGetter.getManager();

        /*
         * //会話表示
         * sVMS.getNowSceneChangeValue().sceneFileName = "0-1-0-3";
         * GameObject tmpGO = (GameObject)Instantiate (_talkPartPerefab);
         *
         * // トークシーンが破壊されるまでループして待つ
         * while (tmpGO != null) {
         *      yield return null;
         * }
         *
         * //引き続きコライダーは停止
         * GMS.setAllCollider2DEnabale (false);
         *
         */

        GameObject tmpGO;

        Time.timeScale = 1;             //パーティクルを使うため1にする

        tmpGO = (GameObject)Instantiate(_stageClearCaption);
        while (tmpGO != null)
        {
            yield return(null);
        }

        sceneChangeValue sceneCV = sVMS.getNowSceneChangeValue();

        //例外差分修正
        sVMS.addStoryProgresses(enum_StoryProgressType.Step);

        //Debug.Log ("gotoStageSelect");
        sVMS.changeScene(sceneChangeStatusEnum.gotoTalkScene);
    }
Beispiel #9
0
    public void cancelButton()
    {
        tObj.actionTapEffect();

        sVMS.changeScene(sceneChangeStatusEnum.gotoStageSelect);
    }