Ejemplo 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;
    }
Ejemplo 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);
    }
Ejemplo n.º 3
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");
    }