Add MjScene property to check if scene has initialized
This commit is contained in:
@@ -63,6 +63,8 @@ public class MjScene : MonoBehaviour {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static bool InstanceExists { get => _instance != null; }
|
||||||
|
|
||||||
public void Awake() {
|
public void Awake() {
|
||||||
if (_instance == null) {
|
if (_instance == null) {
|
||||||
_instance = this;
|
_instance = this;
|
||||||
|
|||||||
Reference in New Issue
Block a user