1
General / Need help with button class [Solved]
« on: November 21, 2016, 05:28:09 pm »
So, I have a problem with my button class. I know how to make a button in main but I want to make a button "Prefab", so I can easily make several buttons with different sprites.
the first part of code (the code I have in main) works fine, the class doesn't, it doesn't register me even hovering over.
code: http://pastebin.com/sswTTn7k
Gif of problem: https://gyazo.com/51087ff491395fc2aa0d1412063da9db
the first part of code (the code I have in main) works fine, the class doesn't, it doesn't register me even hovering over.
code: http://pastebin.com/sswTTn7k
Gif of problem: https://gyazo.com/51087ff491395fc2aa0d1412063da9db