Merge pull request #2893 from joanllobera:fix/passive-attribute-droped
PiperOrigin-RevId: 878958794 Change-Id: I2d1fe080bd02b5c3e685cefbf36d45821cdfb46d
This commit is contained in:
@@ -327,7 +327,7 @@ public class MjGlobalSettings : MonoBehaviour {
|
||||
public static MjGlobalSettings Instance {
|
||||
get {
|
||||
if (_instance == null) {
|
||||
var instances = FindObjectsOfType<MjGlobalSettings>();
|
||||
var instances = FindObjectsByType<MjGlobalSettings>(FindObjectsSortMode.None);
|
||||
if (instances.Length > 1) {
|
||||
throw new InvalidOperationException(
|
||||
"Only one MjGlobalSettings instance is allowed - please resolve manually.");
|
||||
|
||||
Reference in New Issue
Block a user