I have a menu that you can set controls from when you hit the escape button. I also have a menu where you can choose between spells in the game by using the E key. So I set a method that takes in a canvas group object and then sets the alpha of said canvas group to 1 if its 0 and 0 if its 1.
It works fine when I hit the esc key but when pressing the E key it changes to 1 but never changes back.
Any suggestion
this is how im calling it for both:
Esc
for spells in stead of UIManager.Instance.Controls
its
UIManager.Instance.Spells