private void EscInput()
 {
     if (SceneManager.GetActiveScene().name == "SelectLevel")
     {
         SelectLevelUI ui = GameObject.Find("SelectPanel").GetComponent <SelectLevelUI>();
         ui.OpenPanel(ui.transform.Find("RootPanel").gameObject);
     }
     else
     {
         PlayScene.Instance.isSelectLevel  = true;
         GameManager.Instance.currentLevel = 1;
         GameManager.Instance.LoadScene();
     }
 }
 void Awake()
 {
     ui = transform.parent.GetComponent <SelectLevelUI>();
 }