17 lines
281 B
C#
17 lines
281 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class soundScript : MonoBehaviour
|
|
{
|
|
public AudioSource sFx;
|
|
|
|
private void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.Space))
|
|
{
|
|
sFx.Play();
|
|
}
|
|
}
|
|
}
|