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