|
|
@ -871,15 +871,13 @@ namespace Fungus |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (hideComponents) |
|
|
|
if (hideComponents) |
|
|
|
{ |
|
|
|
{ |
|
|
|
IBlock[] blocks = GetComponents<IBlock>(); |
|
|
|
Block[] blocks = GetComponents<Block>(); |
|
|
|
foreach (IBlock block in blocks) |
|
|
|
foreach (Block block in blocks) |
|
|
|
{ |
|
|
|
{ |
|
|
|
GameObject go = ((Block)block).gameObject; |
|
|
|
block.hideFlags = HideFlags.HideInInspector; |
|
|
|
|
|
|
|
if (block.gameObject != gameObject) |
|
|
|
go.hideFlags = HideFlags.HideInInspector; |
|
|
|
|
|
|
|
if (go != gameObject) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
go.hideFlags = HideFlags.HideInHierarchy; |
|
|
|
block.hideFlags = HideFlags.HideInHierarchy; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|