Exemple #1
0
        private void Start()
        {
            ExperimentalGameEventHandler gameManager = ExperimentalGameEventHandler.Instance;

            playerController = gameManager.player;

            mainCamera        = Camera.main.transform;
            anim              = mainCamera.GetComponent <Animator>();
            playerAudioSource = playerController.GetComponent <AudioSource>();

            GetComponent <AudioSource>().clip = audioStatic;
        }
Exemple #2
0
        private void Start()
        {
            gameManager = ExperimentalGameEventHandler.Instance;

            GameObject slender = gameManager.slenderman;
            ExperimentalPlayerController player = gameManager.player;

            mainCamera = Camera.main;

            slendermanLocation = slender.transform;
            playerLocation     = player.transform;
            spawnRadius        = player.viewDistance;
        }