Beispiel #1
0
    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>();
    }
 private void button1_Click(object sender, EventArgs e)
 {
     ChangeBackColor.Invoke(Color.Black);
 }