Fix remove IsoObject from scene bug

This commit is contained in:
2016-04-18 01:49:59 +06:00
parent 12e944b068
commit 7656f3c565

View File

@@ -238,11 +238,13 @@ namespace IsoTools {
//
// ---------------------------------------------------------------------
IsoWorld _isoWorld = null;
public IsoWorld isoWorld {
get {
return gameObject.activeInHierarchy
? IsoWorld.Instance
: null;
if ( !_isoWorld && gameObject.activeInHierarchy ) {
_isoWorld = IsoWorld.Instance;
}
return _isoWorld;
}
}