Beispiel #1
0
    void Start()
    {
        //シーン情報を取得
        obj_PerformanceCamera = GameObject.Find("PerformanceCamera");
        obj_scene             = GameObject.Find("SceneController");
        sceneControll         = obj_scene.GetComponent <SceneControll>();
        obj_stageInstructs    = GameObject.Find("StageConfiguration");
        stageInstructs        = obj_stageInstructs.GetComponent <StageInstructs>();
        obj_cameraInformation = GameObject.Find("CameraInformation");
        cameraInformation     = obj_cameraInformation.GetComponent <CameraInformation>();
        obj_crtNoise          = GameObject.Find("SelectMainCamera");
        crtNoise = obj_crtNoise.GetComponent <CRTnoise>();

        //演出用のカメラの情報を一つ前のシーンの状態と同じにする
        obj_PerformanceCamera.transform.position = cameraInformation.CameraPos;
        obj_PerformanceCamera.transform.rotation = cameraInformation.CameraRota;
        //セレクトシーンに入った瞬間はNoneとして初期化
        sceneControll.CurrentStage = NextStage.None;

        ChangeSceneFrag  = false;
        ChangeSceneCount = 2;

        //シーン移行の際につかう黒い画像なので最初は表示しない
        image.enabled = false;
    }
Beispiel #2
0
 private void Start()
 {
     if (SceneManager.GetActiveScene().name != "TitleScene")
     {
         obj_stageInstructs = GameObject.Find("StageConfiguration");
         stageInstructs     = obj_stageInstructs.GetComponent <StageInstructs>();
     }
 }
Beispiel #3
0
 void Start()
 {
     //スクリプトの確保
     obj_stageInstructs = GameObject.Find("StageConfiguration");
     stageInstructs     = obj_stageInstructs.GetComponent <StageInstructs>();
     obj_selectControll = GameObject.Find("SelectControll");
     selectControll     = obj_selectControll.GetComponent <SelectControll>();
     v_camera.Priority  = 5;
 }
Beispiel #4
0
    void Start()
    {
        //セレクト用のカメラと演出用のカメラをそれぞれ初期化
        cameraName = CameraName.None;
        nextStage  = NextStage.None;

        //次のステージが何を選ばれているかを取得
        //ただ、タイトル画面ではステージ選択を行うスクリプトは必要ないので振り分け
        string name = SceneManager.GetActiveScene().name;

        if (selectCamera && transform.tag != CameraName.PlayCamera.ToString())
        {
            obj            = GameObject.Find("StageConfiguration");
            stageInstructs = obj.GetComponent <StageInstructs>();
        }
        //初期化ではShaderをかけない
        CRTFlag = false;
        //全部の値を初期化
        Donothing();

        //演出用のかめらの場合
        if (!selectCamera)
        {
            foreach (var camera_name in Enum.GetValues(typeof(CameraName)))
            {
                //自身のカメラに付けたのと同じ名前の列挙型を取得する
                if (transform.tag == camera_name.ToString())
                {
                    cameraName = (CameraName)camera_name;
                    if (transform.tag == CameraName.TitleRoomCamera.ToString())
                    {
                        CRTFlag = true;
                    }
                }
            }
        }
        //ステージ選択の場合
        if (selectCamera)
        {
            foreach (var next_stage in Enum.GetValues(typeof(NextStage)))
            {
                //上と同じく自身のカメラに付けたタグと同じものを取得する
                //ステージを選ぶ際と同じ型の列挙型を指定している
                if (transform.tag == next_stage.ToString())
                {
                    nextStage = (NextStage)next_stage;
                }
            }
        }
        //タイトルでノイズを調整するためのタイム
        NoiseTime = 0;
    }
Beispiel #5
0
    void Start()
    {
        obj_stageInstructs = GameObject.Find("StageConfiguration");
        stageInstructs     = obj_stageInstructs.GetComponent <StageInstructs>();

        for (int i = 1; i < v_camrea.Length; i++)
        {
            v_camrea[i].Priority = 9;
        }
        v_camrea[0].Priority        = 11;
        stageInstructs.CurrentStage = NextStage.Tutrial1;
        f_move_time = 1;
    }
Beispiel #6
0
    void Start()
    {
        cameraState   = CameraState.Op;
        currrentIndex = 0;

        //カメラの初期座標を入れる
        titleTV = GameObject.Find("TitleTV");

        /* ほしいスクリプトの中身をもらう */
        obj            = GameObject.Find("TitleRoomCamera");
        crtnoise       = obj.GetComponent <CRTnoise>();
        obj_           = GameObject.Find("StageConfiguration");
        stageInstructs = obj_.GetComponent <StageInstructs>();
        //transform.position = titleTV.transform.position+new Vector3();
        //年のため向きを初期化
        //transform.rotation = new Quaternion(.0f, .0f, .0f, .0f);
    }