@@ -11,11 +11,11 @@ namespace Dreamteck
|
||||
{
|
||||
if (_instance == null)
|
||||
{
|
||||
_instance = Object.FindObjectsOfType<T>().FirstOrDefault();
|
||||
_instance = Object.FindFirstObjectByType<T>();
|
||||
}
|
||||
|
||||
return _instance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user