public Animator startButton;
public Animator settingsButton;
public Animator setplane;
public void StartGame()
{
Application.LoadLevel("RocketMouse");
}
public void OpenSettings()
{
startButton.SetBool("TureBool", true);
settingsButton.SetBool("TureBool", true);
setplane.enabled = true;
setplane.SetBool("TureBool", false);
}
public void CloseSettings()
{
startButton.SetBool("TureBool", false);
settingsButton.SetBool("TureBool", false);
setplane.SetBool("TureBool", true);
}
2d ui菜单进入出去
原文:http://blog.csdn.net/haifeng619/article/details/46390433