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
@@ -63,6 +63,8 @@ public class MjScene : MonoBehaviour {
}
}
public static bool InstanceExists { get => _instance != null; }
public void Awake() {
if (_instance == null) {
_instance = this;