Exemplo n.º 1
0
 // 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);
 }
Exemplo n.º 2
0
 // 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>();
 }