mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 12:08:52 +00:00
18 lines
487 B
C#
18 lines
487 B
C#
using UnityEngine;
|
|
|
|
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>();
|
|
}
|
|
}
|
|
}
|