disable movement on other object
Posted: Mon Jun 15, 2020 3:24 pm
Hi, I'm trying to use the dialogue system to swap between playable characters.
I have it so that clicking on one game object will turn on the script that allows movement.
However, I'm trying to figure out how to turn off the movement on the other game object. I tried setting it to deactivate when the new object is triggered, but that just makes the whole game object disappear.
Is there any way to use the disable/enable component option but for a different object's script?
Thank you
I have it so that clicking on one game object will turn on the script that allows movement.
However, I'm trying to figure out how to turn off the movement on the other game object. I tried setting it to deactivate when the new object is triggered, but that just makes the whole game object disappear.
Is there any way to use the disable/enable component option but for a different object's script?
Thank you