Exemplo n.º 1
0
    // 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");
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        //チュートリアル画面用ビュー
        GameObject view = Instantiate((GameObject)Resources.Load("Prefabs/TutorialSceneView"));

        view.transform.SetParent(this.transform);
        this.sceneView           = view;
        this.sceneViewController = view.GetComponent <GameSceneViewController>();

        //ゲーム画面用キャンバス
        GameObject canvas = Instantiate((GameObject)Resources.Load("Prefabs/TutorialSceneCanvas"));

        canvas.transform.SetParent(this.transform);
        this.sceneCanvas           = canvas;
        this.SceneCanvasController = canvas.GetComponent <GameSceneCanvasController>();

        //サウンドマネージャー取得
        this.soundManager = SoundManagerController.Instance;
        this.soundManager.addSound("bgm_tutorial", "Sounds/bgm_tutorial");
        this.soundManager.addSound("change", "Sounds/yf_cursor22");

        soundManager.playBGM("bgm_tutorial", 3.0f);
    }