Hi Aron,
before, i make npc just move in x axis
but now, i want to add another npc move in z axis
where should i add/change the script ? (because AIPath inherits from AIbase.)
I have 4 npc move in x axis
and 1 npc move in z axis
thx
Hi Aron,
before, i make npc just move in x axis
but now, i want to add another npc move in z axis
where should i add/change the script ? (because AIPath inherits from AIbase.)
I have 4 npc move in x axis
and 1 npc move in z axis
thx
Hi
You can simply expose a boolean or integer as a global variable which will allow you to change it from the Unity inspector.
Then in the code you can use an IF statement to switch between setting the x coordinate to zero and the z coordinate to zero.