private void ShowSleepChoosePanel(bool state = true) { if (state) { if (_sleepChooosePanel == null) { _sleepChooosePanel = new SleepChoosePanel(); } _sleepChooosePanel.Init(this); _sleepChooosePanel.Show(0); } else { if (_sleepChooosePanel != null) { _sleepChooosePanel.Hide(); } } }
public override void Init() { _sleepChooosePanel = new SleepChoosePanel(); _sleepChooosePanel.Init(this); _sleepChooosePanel.Show(0.5f); }