Example #1
0
 // Start is called before the first frame update
 void Awake()
 {
     player          = GameObject.FindGameObjectWithTag("Player");
     serumUI         = GameObject.FindGameObjectWithTag("SerumUI").GetComponent <SerumUITutorial>();
     drone           = GameObject.FindGameObjectWithTag("Drone");
     droneController = drone.GetComponent <TutorialDroneController>();
     soundController = GameObject.FindGameObjectWithTag("SoundController");
     audio           = soundController.GetComponent <SoundController>();
 }
Example #2
0
    void Start()
    {
        player      = GameObject.FindGameObjectWithTag("Player");
        hp          = player.GetComponent <CompleteProject.PlayerHealth>();
        serumUI     = GameObject.FindGameObjectWithTag("SerumUI");
        serum_count = serumUI.GetComponent <CompleteProject.SerumUITutorial>();
        serums      = GameObject.FindGameObjectWithTag("Serum");
        Create_Zombie.SetActive(false);
        soundController = GameObject.FindGameObjectWithTag("SoundController");
        audio           = soundController.GetComponent <SoundController>();
        bgmController   = GameObject.FindGameObjectWithTag("BGMController");
        bgm             = bgmController.GetComponent <BGMController>();

        audio.StartAlarm();
        bgm.day();                                                //BGM출력
        DayTimeUI.SetActive(true);                                //안내메시지 출력
        Time.timeScale   = 0f;
        Cursor.visible   = true;
        Cursor.lockState = CursorLockMode.None;
    }