public void ExecAuto(Action callback) { DialogBoxUIManager uiManger = diabox.GetComponent <DialogBoxUIManager>(); if (isopen) { uiManger.Open(time, callback); } else { uiManger.Close(time, callback); } }
public override void Exec() { DialogBoxUIManager uiManger = diabox.GetComponent <DialogBoxUIManager>(); if (isopen) { uiManger.Open(time, new Action(() => { })); } else { uiManger.Close(time, new Action(() => { })); } }