Exemplo n.º 1
0
    void Start()
    {
        //必要なスクリプトを所持
        obj_sceneControll     = GameObject.Find("SceneController");
        sceneControll         = obj_sceneControll.GetComponent <SceneControll>();
        obj_portal            = GameObject.Find("TutrialCamera");
        distortPortal         = obj_portal.GetComponent <DistortPortal>();
        obj_crtNoise          = GameObject.Find("TutrialCamera");
        crtNoise              = obj_crtNoise.GetComponent <CRTnoise>();
        obj_cameraInformation = GameObject.Find("CameraInformation");
        cameraInformation     = obj_cameraInformation.GetComponent <CameraInformation>();

        //ゴールorPortalのメアスオブジェ
        portalPosObj = GameObject.FindGameObjectWithTag("GoleObject");
        //キャンバスを最初は消しておく
        foreach (var image in PouseRogo)
        {
            image.enabled = false;
        }

        //フラグ関係の初期化
        changeSceneFrag = false;
        stageClearFrag  = false;
        playerDeadFrag  = false;
        outBlackAlpha   = true;

        pouseSelect = PouseSelect.ToContinue;
    }
Exemplo n.º 2
0
    void Start()
    {
        //必要なスクリプトを所持
        obj_sceneControll     = GameObject.Find("SceneController");
        sceneControll         = obj_sceneControll.GetComponent <SceneControll>();
        obj_portal            = GameObject.Find("PlayCamera");
        distortPortal         = obj_portal.GetComponent <DistortPortal>();
        obj_crtNoise          = GameObject.Find("PlayCamera");
        crtNoise              = obj_crtNoise.GetComponent <CRTnoise>();
        obj_cameraInformation = GameObject.Find("CameraInformation");
        cameraInformation     = obj_cameraInformation.GetComponent <CameraInformation>();
        //ゴールorPortalのメアスオブジェ
        portalPosObj = GameObject.FindGameObjectWithTag("GoleObject");
        //キャンバスを最初は消しておく
        foreach (var image in PouseRogo)
        {
            image.enabled = false;
        }

        //フラグ関係の初期化
        changeSceneFrag = false;
        stageClearFrag  = false;
        playerDeadFrag  = false;
        outBlackAlpha   = true;

        lastStageClearFrag = false;

        pouseSelect = PouseSelect.ToContinue;

        //シーン移行の際につかう黒い画像なので最初は表示しない
        // LeanTween.colorText(outBlack.GetComponent<RectTransform>(), new Color(1, 1, 1, 0), 0.5f);
    }
Exemplo n.º 3
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;
    }
Exemplo n.º 4
0
    void Start()
    {
        /** いろいろ初期化 **/
        sceneChangeFlag = false;
        cameraMoveType  = CameraMoveType.Rotate;

        //CRTスクリプトの確保
        crtNoise      = GetComponent <CRTnoise>();
        noiseParticle = GetComponent <NoiseParticle>();
        //crtNoise.cameraName = CRTnoise.CameraName.TitleMainCamera;
    }
Exemplo n.º 5
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);
    }
Exemplo n.º 6
0
    //string name;
    void Start()
    {
        //持っているカメラ情報を取得
        MainCam = GameObject.Find("TitleMainCamera");
        SubCam  = GameObject.Find("TitleSubCamera");

        //使用するスクリプトを保持
        //シーン情報を取得
        obj_scene     = GameObject.Find("SceneController");
        sceneControll = obj_scene.GetComponent <SceneControll>();
        //ポータルに支持を出すための変数
        distortPortal         = MainCam.GetComponent <DistortPortal>();
        obj_crtNoise          = GameObject.Find("TitleMainCamera");
        crtNoise              = obj_crtNoise.GetComponent <CRTnoise>();
        obj_cameraInformation = GameObject.Find("CameraInformation");
        cameraInformation     = obj_cameraInformation.GetComponent <CameraInformation>();

        //演出の関係上必要になったフラグ
        sceneChangeFrag = false;

        image_black.enabled = false;

        //SoundManager.GetInstance.PlayBGM("6815");
    }