mirror of
https://github.com/BlackMATov/unity-iso-tools.git
synced 2025-12-14 17:09:31 +07:00
Fix remove IsoObject from scene bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user