BGJ-2022.1/Assets/Scripts/Player/Clop.cs

14 lines
270 B
C#

using UnityEngine;
namespace Player
{
public class Clop : MonoBehaviour
{
private AudioSource audioSource = null;
private void Start() => audioSource = GetComponent<AudioSource>();
public void PlayClop() => audioSource.Play();
}
}