// Use this for initialization void Start() { //アプリケーションマネージャー取得 this.app = ApplicationManagerController.Instance; this.initStage(); }
// Use this for initialization void Start() { //アプリケーションマネージャー取得 this.app = ApplicationManagerController.Instance; this.app.currentSceneManager = this.gameObject; //ステージ情報 this.app.playingStageNumber = this.startStageNumber; //サウンドマネージャー取得 this.soundManager = SoundManagerController.Instance; //使用音声ファイル読み込み this.soundManager.addSound("bgm_clear", "Sounds/bgm_StageClear"); this.soundManager.addSound("bgm_allclear", "Sounds/bgm_StageAllClear"); this.soundManager.addSound("playermiss", "Sounds/se_PlayerMiss"); this.soundManager.addSound("paneldrop", "Sounds/se_PanelThrough"); this.soundManager.addSound("getitem", "Sounds/se_GetItem"); this.soundManager.addSound("gameover", "Sounds/gameover"); this.setupScene(); }
// Use this for initialization void Start() { this.actorBase = GameObject.Find("ActorBase"); this.iconBase = GameObject.Find("IconBase"); //アクター配置 this.addActor(); this.addActor(); this.addActor(); this.addActor(); this.addActor(); this.actors[0].transform.position = new Vector3(0, 0, 0); this.initIconPosition(0); //フェード初期処理 this.fadeStar = this.fadeStarCanvas.GetComponent <Fade>(); //タップエフェクト GameObject go = Instantiate((GameObject)Resources.Load("Prefabs/TapEffect")); go.transform.parent = this.transform; this.tapEffect = go.GetComponent <TapEffect>(); //シーン開始フェード GameObject fd = Instantiate((GameObject)Resources.Load("Prefabs/Mask_first")); //アプリケーションマネージャー取得 this.app = ApplicationManagerController.Instance; app.selectedActor = 0; //サウンドマネージャー取得 this.soundManager = SoundManagerController.Instance; this.soundManager.addSound("bgm_select", "Sounds/DS-091m"); this.soundManager.addSound("change", "Sounds/yf_cursor22"); this.soundManager.addSound("openselect", "Sounds/se_maoudamashii_se_paper01"); this.soundManager.addSound("cancel", "Sounds/se_maoudamashii_system36"); soundManager.playBGM("bgm_select"); }