void Start() { animator = GetComponent <Animator>(); //start_cuckooAni(); cameraShake_script = Camera.main.GetComponent <CameraShake>(); fpCam_Script = Camera.main.GetComponent <FirstPersonCamera>(); //0 //public UnityStandardAssets.CinematicEffects.MotionBlurEditor motionBlur_script; //UnityStandardAssets.CinematicEffects.MotionBlurEditor motionBlur = Camera.main.GetComponent<MotionBlur>(); //1 //motionBlur_script = GetComponent<MotionBlur>(); //GUI.enabled; //2 //if (boolValue == false) //{ // base.OnInspectorGUI(); // return; //} doorAni_script = GameObject.FindObjectOfType <DoorAni_cuckoo>(); player_script = GameObject.FindObjectOfType <Player_HJ>(); cpManager_script = GameObject.FindObjectOfType <ClockPuzzle_Manager>(); //AniNameHash = animator.StringToHash(EventEndAnimationName); journeyLength = Vector3.Distance(startTransform.position, endTransform.position); }
void Start() { camera = GetComponent <Camera>(); //메인카메라 FramelayerMask = (1 << LayerMask.NameToLayer("ClockPuzzle")); CamObstacle_layerMask = (1 << LayerMask.NameToLayer("Obstacle")) + (1 << LayerMask.NameToLayer("ClockPuzzle")); //외곽선 OutlineController = GameObject.FindObjectOfType <DrawOutline_HJ>(); //카메라전환 ChangeCam_script = GameObject.FindObjectOfType <ChangeCam_SubClock>(); //SeeClock_script = GameObject.FindObjectOfType<SeeingSubClock>(); //장애물,벽 obstacleReader_script = GameObject.FindObjectOfType <ObstacleReader>(); obstacle_layer = (1 << LayerMask.NameToLayer("ClockPuzzle")) + (1 << LayerMask.NameToLayer("Obstacle")); // 쪽지 매니저 notemager = FindObjectOfType <NoteManger>(); //시계퍼즐 매니저 스크립트 cp_manager_script = GameObject.FindObjectOfType <ClockPuzzle_Manager>(); }
void Start() { ChangeCam_script = FindObjectOfType <ChangeCam_2stage>(); //guideCaption.gameObject.SetActive(false); _mainCam = Camera.main; CellarCamera = GetComponent <Camera>(); // - 장애물 확인용 레이어 지정 checklayer = (1 << LayerMask.NameToLayer("Basement")) + (1 << LayerMask.NameToLayer("Obstacle")); //외곽선 OutlineController = GameObject.FindObjectOfType <DrawOutline_HJ>(); //장애물,벽 obstacleReader_script = GameObject.FindObjectOfType <ObstacleReader>(); // 서브시계 보는 스크립트 subClock_script = GameObject.FindObjectOfType <MakeClockSee>(); //시계퍼즐 매니저 스크립트 cp_manager_script = GameObject.FindObjectOfType <ClockPuzzle_Manager>(); // 쪽지 매니저 notemager = FindObjectOfType <NoteManger>(); }
void Start() { CPmanager_script = GameObject.FindObjectOfType <ClockPuzzle_Manager>(); }