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); }
/* * * 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 setStroyProgresses(string argsStr){ // <forwardEvent:[abcd]> string tagMain = argsStr.Substring (1, (argsStr.Length-2)); //カッコの消去 string[] spritStr = tagMain.Split(new string[]{":"}, System.StringSplitOptions.None); //sprit string argsPosi = spritStr[1]; //直接文字列指定 //進行度をジャンプする Debug.Log("jump Sroty tag :" + argsPosi); sVMS.setStoryProgress(argsPosi); }