Hi, I’m new for Unity.
I want to add a new test button in the menu of Angry Bots which will call methods from an Android plugin.
The menu is created in the script DemoControls.cs.
It defines some buttons
public Texture2D pauseIcon, menuBackground, resumeButton, restartButton, fullscreenButton, muteButton, quitButton;
In this scrip, if I replace the “callback” of a button with calling the Android plugin, it works as I expected. But I have no idea how to add some buttons into the menu.
For example, if I want to add a TEST button, first, I should add the TEST.psd in Assets\Textures\GUI, because other psd of the buttons are stored here.
Second, I should add code in the OnGUI() to create the button and do something.
My question is how to create a testButton variable? I haven’t find any code of resumeButton, restartButton, fullscreenButton, muteButton, quitButton which is used in ths scrip in the project.
Can somebody who is familiar with this demo help me?
Thank you !