I’ll start by saying that I am new to scripting/coding so this may be a really naive question.
I’m trying to set up an event whereby I have a player character under player input control and I want the character they are controlling to trigger a transition for another character that has thier own Mecanim animation flow controller.
So my scene has 2 Mecanim animation controllers; one for the playable character and one for another character, these two controllers have unique names; I’ve set up a trigger box in the scene and the idea is that when the player enters this box it triggers a bool in the other characters Mecanim animation controller that will allow a transition to take place for that character.
So far I’ve set up the trigger box and a script to switch a bool from false to true within the Player characters Mecanim anim controller; I can see this working… but how do I pass that bool over to be used by the other characters Mecanim animation controller?
I’ve tried creating the same name boolean in the second characters Mecanim anim controller but it doesnt switch to true as the Players one does.
I’m sure I’m missunderstanding something fundamental here about how it all works.