Sound + somewhat game loop
This commit is contained in:
parent
29e5e48aee
commit
1d6a879755
33 changed files with 1572 additions and 595 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue