protected override void Initialize() { base.Initialize(); _lightEffectObject = GameObject.Find("Flash"); _lightEffect = _lightEffectObject.GetComponent <Light>(); _lightUIObject = GameObject.Find("PossessionItems"); _lightUI = _lightUIObject.GetComponentInChildren <Flashlight_PRO>(); }
void Start() { particleRing = Ring_Particle.GetComponentInChildren <ParticleSystem>(); item_layerMask = (1 << LayerMask.NameToLayer("Item")) + (1 << LayerMask.NameToLayer("Doll")); //배치퍼즐 location_layerMask = (1 << LayerMask.NameToLayer("Display")); displayManager_script = GameObject.FindObjectOfType <DisplayManager_2stage>(); displayManager_script2 = GameObject.FindObjectOfType <DisplayManager_3stage>(); displayManager_script2.enabled = false; actionController_3stage_script = FindObjectOfType <ActionController_03>(); //손전등 FlashlightItem.SetActive(false); flash_script = FlashlightItem.GetComponent <Flashlight_PRO>(); flash_script.enabled = false; flash_end = FindObjectOfType <OnTrigger_Flash>(); //모닥불 Fire_script = GameObject.FindObjectOfType <AddSoundManager>(); //라이트 _lightOn_script = GameObject.FindObjectOfType <LightOn_3stage>(); //외곽선 OutlineController = GameObject.FindObjectOfType <DrawOutline_HJ>(); //웬디 wendyAI_Script = GameObject.FindObjectOfType <WendyAI>(); //장애물,벽 obstacleReader_script = GameObject.FindObjectOfType <ObstacleReader>(); // 쪽지 매니저 notemager = FindObjectOfType <NoteManger>(); //지하실 _cellarManager = GameObject.FindObjectOfType <Cellar_Manager>(); //지하실 보기 _cellarDoor_script = GameObject.FindObjectOfType <CellarDoorCollider>(); //지하실쳐다봐야열리게 lookingBasement_script = GameObject.FindObjectOfType <LookingBasement>(); }
// Start is called before the first frame update void Start() { camPos = transform.GetChild(transform.childCount - 1); agent = GetComponent<NavMeshAgent>(); anim = GetComponent<Animator>(); sound = GetComponent<AudioSource>(); BugRb = GetComponent<Rigidbody>(); PlayerRb = player.GetComponent<Rigidbody>(); agent.speed = 1.2f; agent.updateRotation = true; multiplier = 1; playerInfoScript = player.GetComponent<PlayerInfo>(); flashlightScript = flashlight.GetComponent<Flashlight_PRO>(); //range = 10; }
private void Start() { flashLightScript = transform.GetComponentInParent <Flashlight_PRO>(); }