quantum-space-buddies/QSB/Audio/PlayerAudioManager.cs

18 lines
487 B
C#
Raw Normal View History

2021-12-15 21:11:30 +00:00
using UnityEngine;
2021-12-14 22:53:53 +00:00
namespace QSB.Audio
{
internal class PlayerAudioManager
{
public static QSBPlayerAudioController InitRemote(Transform playerBody)
{
var REMOTE_Audio_Player = new GameObject("REMOTE_Audio_Player");
REMOTE_Audio_Player.transform.parent = playerBody;
REMOTE_Audio_Player.transform.localPosition = Vector3.zero;
REMOTE_Audio_Player.transform.localScale = Vector3.one;
return REMOTE_Audio_Player.AddComponent<QSBPlayerAudioController>();
}
}
}