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; }
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; }