|
|
@ -26,10 +26,22 @@ namespace Fungus |
|
|
|
SetColliderActive(go); |
|
|
|
SetColliderActive(go); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
GameObject[] taggedObjects = GameObject.FindGameObjectsWithTag(targetTag); |
|
|
|
GameObject[] taggedObjects = null; |
|
|
|
foreach (GameObject go in taggedObjects) |
|
|
|
try |
|
|
|
{ |
|
|
|
{ |
|
|
|
SetColliderActive(go); |
|
|
|
taggedObjects = GameObject.FindGameObjectsWithTag(targetTag); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
catch |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
// The tag has not been declared in this scene |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (taggedObjects != null) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
foreach (GameObject go in taggedObjects) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
SetColliderActive(go); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Continue(); |
|
|
|
Continue(); |
|
|
|