Skip to content

Commit

Permalink
fix: multiple contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
RiverTwilight committed Jan 6, 2023
1 parent 9023901 commit 0011eff
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Scripts/AudioManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Sirenix.OdinInspector;
using Cysharp.Threading.Tasks;

public class AudioManager : MonoBehaviour
public class AudioManager : SingletonMonoBehavior<MonoBehaviour>
{
static AudioManager current;

Expand All @@ -18,7 +18,7 @@ private void Awake()
{
current = this;

DontDestroyOnLoad(gameObject);
//DontDestroyOnLoad(gameObject);

musicSource = gameObject.AddComponent<AudioSource>();
}
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 0011eff

Please sign in to comment.