mirror of
https://github.com/FriendshipIsEpic/FiE-Game.git
synced 2024-11-30 17:07:59 +01:00
18 lines
307 B
C#
18 lines
307 B
C#
|
using UnityEngine;
|
||
|
|
||
|
namespace Fie.Voice
|
||
|
{
|
||
|
[RequireComponent(typeof(AudioSource))]
|
||
|
public class FieVoiceSpeaker : MonoBehaviour
|
||
|
{
|
||
|
private AudioSource _speaker;
|
||
|
|
||
|
public AudioSource audioSource => _speaker;
|
||
|
|
||
|
private void Awake()
|
||
|
{
|
||
|
_speaker = base.gameObject.GetComponent<AudioSource>();
|
||
|
}
|
||
|
}
|
||
|
}
|