Hi. )
Within Distance works with object that was in scene before play -but if i create Clone of it it dont work.
1 First red sphere was in scene from start and knights react and work as i want
2 i press button to create the same sphere from prefab and knights dont react on it
unity 2018.2.02
BHD -1.6.1
this behavior on each knight -if enemy with tag "Soldier" within distance start atack -if not stop atack
it is screen of working good behavior.
not working- the same just dont trigger when sphere close
Within Distance works with object that was in scene before play -but if i create Clone of it it dont work.
1 First red sphere was in scene from start and knights react and work as i want
2 i press button to create the same sphere from prefab and knights dont react on it
unity 2018.2.02
BHD -1.6.1
this behavior on each knight -if enemy with tag "Soldier" within distance start atack -if not stop atack
it is screen of working good behavior.
not working- the same just dont trigger when sphere close
Last edited: