public void Show() { if (_busy) { return; } _busy = true; if (_shown) { return; } _helper.AfterComplete = () => { _shown = true; AfterShown?.Invoke(); }; _helper.AfterCanceled = () => { _shown = false; }; _helper.AfterError = (e) => { _shown = true; }; _helper.Preload(true); }
public void CallAfterShownEvent() { AfterShown?.Invoke(); }
public void StartShow(AfterShown fn = null) { gameObject.SetActive(true); UseCodeWay(); fnAfterShown = fn; }