Commit 98761826 authored by ATREVI Dieudonne's avatar ATREVI Dieudonne
Browse files

Add cancel button to parameter'es modification panel

parent b0864523
......@@ -256,7 +256,20 @@ public class MenuManager : MonoBehaviour
controlPanel.SetActive(!controlPanel.activeSelf);
//slider.SetActive(!panel.activeSelf);
topMenuPanel.SetActive(true);
Play(); // start after the parameters modification
//Play(); // start after the parameters modification
}
/// <summary>
/// close the config panel without save the parameters
/// </summary>
public void cancelConfig()
{
configPanel.SetActive(!configPanel.activeSelf);
controlPanel.SetActive(!controlPanel.activeSelf);
//slider.SetActive(!panel.activeSelf);
topMenuPanel.SetActive(true);
controlPanel.transform.Find("pause").GetComponent<Button>().Select();
}
/// <summary>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment