mirror of
https://github.com/BlackMATov/unity-iso-tools.git
synced 2025-12-15 09:16:08 +07:00
performance trip
This commit is contained in:
@@ -188,10 +188,10 @@ namespace IsoTools {
|
||||
IsoWorld _isoWorld = null;
|
||||
public IsoWorld IsoWorld {
|
||||
get {
|
||||
if ( !_isoWorld ) {
|
||||
if ( (object)_isoWorld == null ) {
|
||||
_isoWorld = GameObject.FindObjectOfType<IsoWorld>();
|
||||
}
|
||||
if ( !_isoWorld ) {
|
||||
if ( (object)_isoWorld == null ) {
|
||||
throw new UnityException("IsoObject. IsoWorld not found!");
|
||||
}
|
||||
return _isoWorld;
|
||||
|
||||
Reference in New Issue
Block a user