3DTD/Assets/Scripts/Utilities/PlaySound.cs

12 lines
252 B
C#
Raw Normal View History

2024-04-21 02:47:54 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlaySound : MonoBehaviour
{
public void PlayASound(string filename)
{
AudioManager.PlaySound(filename, transform.position);
}
}