Sound + somewhat game loop

This commit is contained in:
Crizomb 2025-01-28 23:00:52 +01:00
parent 29e5e48aee
commit 1d6a879755
33 changed files with 1572 additions and 595 deletions

View file

@ -10,7 +10,7 @@ public class MonoBehaviourSingletonPersistent<T> : MonoBehaviour
if (Instance == null) {
Instance = this as T;
Instance.name = typeof(T).Name;
DontDestroyOnLoad (this);
DontDestroyOnLoad (gameObject);
} else {
Destroy (gameObject);
}