Question by
importguru88 · Sep 07, 2016 at 07:30 PM ·
scenescene-loadingloading screen
How do I load previous scenes on unity3d
.....................................................
Comment
Best Answer
Answer by TBruce · Sep 07, 2016 at 08:05 PM
Here is my updated answer. Attached is a file called ButtonActionHandler.zip which includes a file named ButtonActionHandler.js (name it what you want).
I had to comment out these two lines for it to compile
public class EGUI_Button extends EGUI_Element {}
super.OnClick();
buttonactionhandler.zip
(1.3 kB)
Answer by importguru88 · Sep 07, 2016 at 09:20 PM
...................................
I have updated my original code. You can also find a link to it here.
There are 3 lines in your code I am unsure of. They are
@script AddComponent$$anonymous$$enu ("EGUI/UI_Elements/Button")
public class EGUI_Button extends EGUI_Element {}
super.OnClick();
I actually commented them out to test because they were irrelevant, but if they work for you...