void Awake()
    {
        // Cameraの取得
        cam = this.GetComponent <Camera>();
        // playerの取得
        player = GameObject.Find("Player");
        // PlayerControllerの取得
        pC = player.GetComponent <PlayerController>();
        // Playerのスキンの取得
        pSkin = GameObject.FindWithTag("PlayerTexture").GetComponent <SkinnedMeshRenderer>();
        // facePosの取得
        facePos = GameObject.Find("FacePos");
        // camPosの取得
        camPos = GameObject.Find("CamPos");
        // ClearLightの取得
        clearLight = GameObject.Find("ClearLight");
        // ClearJudgementの取得
        cJ = GameObject.Find("GameDirector").GetComponent <ClearJudgement>();
        // 追跡用ロボットの取得
        robot = GameObject.Find("TrackingRobot");
        // InsideColorBoxのMeshRendererの取得
        insideColorBox = GameObject.FindWithTag("InsideColorBox").GetComponent <MeshRenderer>();
        // BringingPosの取得
        bringingPos = GameObject.FindWithTag("BringingPos");

        GameObject uiD = GameObject.Find("UIDirector");

        // StageUIの取得
        sUI = uiD.GetComponent <StageUI>();
        // SFXPlayerの取得
        sfx_UI = uiD.GetComponent <SFXPlayer>();
    }
Beispiel #2
0
 void Awake()
 {
     // ItemにアタッチされているRigidbodyを取得する
     rBody = GetComponent <Rigidbody>();
     // BringingPosの取得
     bringingPos = GameObject.Find("BringingPos");
     // Itemの一階層目に配置している子オブジェクト(KeyBlock本体)を取得する
     child = transform.GetChild(0).gameObject;
     // Itemの直下に配置している子オブジェクトのBoxColliderを取得する
     col = child.GetComponent <BoxCollider>();
     // yagikun3Dのゲームオブジェクトを取得する
     yagikun3D = GameObject.Find("Yagikun3D");
     // クリア条件の渡す先となるClearJudgementを取得する
     cJ = GameObject.Find("GameDirector").GetComponent <ClearJudgement>();
 }
Beispiel #3
0
 // Start is called before the first frame update
 void Awake()
 {
     rBody = GetComponent <Rigidbody>();
     // Playerの直下の一番上に配置しているYagikun3DにアタッチされているAnimationControllerを取得する
     yagikun = transform.GetChild(0).gameObject;
     // Yagikun3DのArmatureの取得
     armature = GameObject.FindWithTag("Armature");
     // Armatureの初期回転角度の取得
     armature_InitialRot = armature.transform.localRotation;
     // プレイヤーの足元位置のTransformの取得(nextFaceの判定に使用する)
     footPosTra = GameObject.Find("FootPos").transform;
     // AnimationControllerの取得
     aC = yagikun.GetComponent <AnimationController>();
     // ClearJudgementの取得
     cJ = GameObject.Find("GameDirector").GetComponent <ClearJudgement>();
     cC = GameObject.Find("Camera").GetComponent <CameraController>();
     // StageUIの取得
     sUI = GameObject.Find("UIDirector").GetComponent <StageUI>();
 }