Question by
firzamc13 · Aug 04, 2020 at 10:22 AM ·
gameobjectprefabclone
how the enemy spot the bomb with bomb prefab clone ?
i want the enemy or guard, if he spot the bomb, the guard's light become green, but it can't change anything event if i try print string, unless if the bomb object should not clone or Instantiated, the guard can change the color or another value, the point is the guard will spot the original bomb object, not the clone object. i'm using find gameobject name or tag, it still won't work even gameobject[]. My question is : how the guard can change value when he spot the bomb clone object?
here some scripts if guard spot the bomb.
Comment