change
This commit is contained in:
@@ -13,6 +13,8 @@ public class BluePlayerController : MonoBehaviour
|
||||
private float cooldownTimer;
|
||||
|
||||
private bool isDead = false;
|
||||
public AudioSource audioSource;
|
||||
public AudioClip audioClip;
|
||||
|
||||
void Update()
|
||||
{
|
||||
@@ -46,6 +48,7 @@ public class BluePlayerController : MonoBehaviour
|
||||
Keyboard.current.gKey.wasPressedThisFrame &&
|
||||
cooldownTimer <= 0f)
|
||||
{
|
||||
AudioSource.PlayClipAtPoint(audioClip, firePoint.position);
|
||||
Instantiate(
|
||||
bulletPrefab,
|
||||
firePoint.position,
|
||||
|
||||
Reference in New Issue
Block a user