예제 #1
0
 void Start()
 {
     LevelNum       = SceneManager.GetActiveScene().buildIndex;
     player         = GameObject.FindGameObjectWithTag("Player");
     gameController = GameObject.FindGameObjectWithTag("GameController").GetComponent <GameController>();
     serumUI        = GameObject.FindGameObjectWithTag("SerumUI").GetComponent <SerumUI>();
 }
예제 #2
0
    void Start()
    {
        player      = GameObject.FindGameObjectWithTag("Player");
        hp          = player.GetComponent <PlayerHealth>();
        playerLight = GameObject.FindGameObjectWithTag("PlayerLight");
        playerLight.SetActive(false);
        serumUI     = GameObject.FindGameObjectWithTag("SerumUI");
        serum_count = serumUI.GetComponent <SerumUI>();
        serums      = GameObject.FindGameObjectsWithTag("Serum");
        Create_Zombie.SetActive(false);
        soundController = GameObject.FindGameObjectWithTag("SoundController");
        audio           = soundController.GetComponent <SoundController>();
        bgmController   = GameObject.FindGameObjectWithTag("BGMController");
        bgm             = bgmController.GetComponent <BGMController>();

        audio.Alarm();
        bgm.day();                                              //BGM출력
        DayTimeUI.SetActive(true);                              //안내메시지 출력
        RoundText.text = "Round  " + RoundNum;                  //라운드 표시
        StartCoroutine(CallDayTimeUI(2));                       //안내메시지 제거
    }