fix : Wwise global guard

This commit is contained in:
2026-05-28 13:24:06 +02:00
parent 5f3a9cb516
commit 11e5ce3a64
4 changed files with 277 additions and 9 deletions
@@ -0,0 +1,14 @@
using UnityEngine;
public class WwiseGlobalGuard : MonoBehaviour
{
void Awake()
{
if (FindObjectsByType<WwiseGlobalGuard>(FindObjectsSortMode.None).Length > 1)
{
Destroy(gameObject);
return;
}
DontDestroyOnLoad(gameObject);
}
}
@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: a732b4b9bbfc16c4ab4d5c50a810287d