예제 #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;
    }
예제 #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);
    }