Second commit
This commit is contained in:
commit
36840f3ad4
999 files changed
+61364
No files matched your search
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Code.Infrastructure.Audio
|
||||
{
|
||||
public class AudioSourceFollower : MonoBehaviour
|
||||
{
|
||||
[NonSerialized]
|
||||
public Transform FollowTarget;
|
||||
private void Update()
|
||||
{
|
||||
if(FollowTarget) transform.SetPositionAndRotation(FollowTarget.position, FollowTarget.rotation);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user