void Start() { // 화이트 디졸브 animWhiteDissolve = whiteDissolve.GetComponent <Animator>(); whiteDissolveSound = whiteDissolve.GetComponent <AudioSource>(); // 카메라 백그라운드 컬러 mainCamBackScript = mainCam.GetComponent <ChangeBackColor>(); // 에덴 선악과 edenSpotlight = forbiddenFruit.GetComponent <Light>(); edenDirectlight = GameObject.Find("Directional Light for Eden").GetComponent <Light>(); audioDrugAddictLight = GameObject.Find("DrugAddictSpotlight").GetComponent <AudioSource>(); audioEden = GameObject.Find("EdenSoundPlayer").GetComponent <AudioSource>(); audioLivingGodScary = GetComponent <AudioSource>(); edenMoodLightControl = GameObject.Find("EdenMoodLight").GetComponent <EdenMoodLightController>(); // 선악과 아웃라인 끄기 outLineForTree = mainTreeOutline.GetComponent <Outline>(); treeGen0217 = mainTreeText.GetComponent <TextMeshPro>(); // 제목달기 god = GameObject.Find("God").GetComponent <TextFade>(); originalMan = GameObject.Find("OriginalMan").GetComponent <TextFade>(); originalProblem = GameObject.Find("OriginalProblem").GetComponent <TextFade>(); problemsOfMan = GameObject.Find("ProblemsOfMan").GetComponent <TextFade>(); // 성경구절 나무버튼과 함께 끄기 gen0128 = GameObject.Find("Gen0128").GetComponent <BibleVersusPopup>(); gen0315 = GameObject.Find("Gen0315").GetComponent <BibleVersusPopup>(); eph22 = GameObject.Find("Eph22").GetComponent <BibleVersusPopup>(); bibleClickManager = GameObject.Find("BibleVersus").GetComponent <BibleButtonClickManager>(); }
void Start() { // 성경구절 불러오기 bibleClickManager = bibleVersus.GetComponent <BibleButtonClickManager>(); bibleClickManager.BibleState(0); bibleTurnOff = GameObject.FindGameObjectsWithTag("BibleTurnOff"); // 버튼들 모두 불러오기 allUIOnOff = GameObject.FindGameObjectsWithTag("ButtonOnOff"); // 버추어 카메라 POV 리셋 설정 cmPOVreset = GameObject.FindGameObjectsWithTag("VirtualCam"); // 카메라 시작 시점. 해와 달 마스크 mainCamera.cullingMask = (1 << cullingLayerDefault) | (1 << cullingLayerSunNMoon); audioSee = edenCam.GetComponent <AudioSource>(); audioEden = edenSound.GetComponent <AudioSource>(); audioIdol = idolCam.GetComponent <AudioSource>(); audioGameAddict = gameAddictCam.GetComponent <AudioSource>(); audioGameAddictLight = gameAddictSpotlight.GetComponent <AudioSource>(); audioDrugAddict = drugAddictCam.GetComponent <AudioSource>(); audioDrugAddictLight = drugAddictSpotlight.GetComponent <AudioSource>(); audioHospital = hosptialCam.GetComponent <AudioSource>(); audioHospitalLight = hospitalSpotlight.GetComponent <AudioSource>(); audioDead = deadCam.GetComponent <AudioSource>(); audioChrist = threeJobsCam.GetComponent <AudioSource>(); anim_EdenRotation = edenPivot.GetComponent <Animator>(); anim_EdenRotation.SetBool("Rotate", true); anim_CrossFade = cross.GetComponent <Animator>(); anim_CrossFade2 = cross2.GetComponent <Animator>(); anim_CrossFade.SetBool("Fade", false); anim_CrossFade2.SetBool("Fade", false); //영접기도문 켜고끄기 prayerPanelRaycast = GameObject.Find("PrayerPanel").GetComponent <CanvasGroup>(); gameAddictLight = gameAddictLight.GetComponent <Light>(); gameAddictLight.enabled = false; drugAddictLight = drugAddictLight.GetComponent <Light>(); drugAddictLight.enabled = false; hospitalLight = hospitalLight.GetComponent <Light>(); hospitalLight.enabled = false; edenSpotlight = GameObject.Find("Eden Spotlight").GetComponent <Light>(); idolLights.SetActive(false); deadLights.SetActive(false); christLights.SetActive(false); gameAddictLightS.SetActive(false); // 제목 셋팅 시작 god = GameObject.Find("God").GetComponent <TextFade>(); originalMan = GameObject.Find("OriginalMan").GetComponent <TextFade>(); originalMan.displayInfo = false; originalProblem = GameObject.Find("OriginalProblem").GetComponent <TextFade>(); originalProblem.displayInfo = false; problemsOfMan = GameObject.Find("ProblemsOfMan").GetComponent <TextFade>(); problemsOfMan.displayInfo = false; theWay = GameObject.Find("TheWay").GetComponent <TextFade>(); theWay.displayInfo = false; // 선악과 버튼 셋팅 buttonTree = mainTree.GetComponent <ButtonTree>(); outLineForTree = mainTreeOutline.GetComponent <Outline>(); // 선악과 텍스트 셋팅 treeGen0217 = treeText.GetComponent <TextMeshPro>(); // 선악과 콜라이더 on off forbiddenFruitsTree = mainTree.GetComponent <CapsuleCollider>(); // 십자가 아웃라인 셋팅 outLineForCross = CrossOutline.GetComponent <Outline>(); // 우상신전 연기 피우기 셋팅 smoke = whiteSmoke.GetComponent <ParticleSystem>(); smoke.Stop(true); // 페이지 시작 TurnSunNMoonOn(); }