Hi, all! I am in a little bit of a debacle here…
I have a prefab named platform. It is comprised of one split mesh, two bones, and a controller for the bones.
The bones play a trap dooor-like animation when the player lands on the platform. The problem is that the bone controller is the only thing that can play the animation, but the colliders need to belong to the bones. I had one script that was attached to the bones and set a variable on a collision another script belonging to the animation controller that played the animation when the variable was true. But when the player hit a platform, they all opened. This happened because all of the platforms read the variable as true.
Goals - I need the animation controller to play the animation when one of the bones collides with the player, but I only want THAT CONTROLLER to play it. Not all others.
How would I do this?