Komplett mit Audio, Fehler beim Start der Spielszenen: standardHealth und standardEnergy werden nicht wie gewollt übermittelt
This commit is contained in:
@@ -5,7 +5,7 @@ public class SFXManager : MonoBehaviour
|
||||
{
|
||||
public static SFXManager instance;
|
||||
|
||||
[SerializeField] private AudioSource sFXObject;
|
||||
[SerializeField] AudioSource SFXSource;
|
||||
|
||||
private void Awake() {
|
||||
if (instance == null) {
|
||||
@@ -15,7 +15,7 @@ public class SFXManager : MonoBehaviour
|
||||
|
||||
// Muss noch schauen, wie ich das für das jeweilige Vieh seine seperaten Sounds einstelle und nicht universal
|
||||
public void PlaySFXClip(AudioClip clip, Transform spawnTransform, float volume) {
|
||||
AudioSource audioSource = Instantiate(sFXObject, spawnTransform.position, Quaternion.identity);
|
||||
AudioSource audioSource = Instantiate(SFXSource, spawnTransform.position, Quaternion.identity);
|
||||
|
||||
audioSource.clip = clip;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user