Issues with an event trigger

Updated on November 23, 2017 in [A] Unity Scripting
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
0 on November 23, 2017

Hello!!

I am working on a 2D platformer and I am trying to do a character selection menu. I have and button with an event trigger that I use for shooting for the character. My problem is that when I switch to a new character the event trigger that is on the button goes blank and I can no longer shoot. I have tried instantiating the characters and having the SetActive to false. Is there a way to set the event trigger through code or if anybody has any other suggestions I would love to hear them.

Thanks!!

  • Liked by
Reply