public void OnEnable()
 {
     if (Dialog == null)
     {
         Dialog = transform.parent.GetComponent <BaseDialog>();
     }
 }
 public void Start()
 {
     Dialog = transform.parent.GetComponent <BaseDialog>();
 }