Beispiel #1
0
 void Fire()
 {
     gController.RegisterHazard(Instantiate(shot, shotSpawn.position, shotSpawn.rotation));
     GetComponent <AudioSource>().Play();
 }