我想使按鈕激活另一個按鈕,然後一旦第二個按鈕被點擊,它將激活第三組按鈕。 感謝您的幫助提前。3組按鈕激活 - UnityScript for Unity
下面是UnityScript當前編碼:
var toggle : boolean;
function OnGUI()
{
toggle = GUI.Toggle(Rect(335, 80, 50, 50), toggle, "Button1", "button");
if (toggle && GUI.Button(Rect(335, 140, 50, 50), "Button2"))
{
// This is the part where I want the second button to activate and show the third set of button(s).
if (toggle && GUI.Button(Rect(335, 140, 50, 50), "Button3"))
{
// Third Button content here.
}
}
}