// Start is called before the first frame update void Start() { rocketAudio = GetComponent <AudioSource>(); playerControllerScript = GameObject.Find("Player").GetComponent <PlayerController>(); crosshrScript = GameObject.Find("Crosshairs").GetComponent <CrosshairBehave>(); audioManagerScript = GameObject.Find("Main Camera").GetComponent <AudioManager>(); rocketAudio.PlayOneShot(rocketFlyby, 0.2f); }
// Start is called before the first frame update void Start() { crosshrScript = GameObject.Find("Crosshairs").GetComponent <CrosshairBehave>(); gameManagerScript = GameObject.Find("GameManager").GetComponent <GameManager>(); spawnManagerScript = GameObject.Find("SpawnManager").GetComponent <SpawnManager>(); }