Add MjScene property to check if scene has initialized

This commit is contained in:
Bálint Hodossy
2022-11-18 11:25:08 +00:00
parent 2328316d7d
commit 1fdbfa7061
+2
View File
@@ -62,6 +62,8 @@ public class MjScene : MonoBehaviour {
return _instance; return _instance;
} }
} }
public static bool InstanceExists { get => _instance != null; }
public void Awake() { public void Awake() {
if (_instance == null) { if (_instance == null) {