fix : Wwise global guard
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user