void Cancel() { OnCancel.AttemptCall(); if (Setups != null) { Setups.ForEach(setup => setup.Remove()); } }
void onCancel(T cancelled) { OnCancel.AttemptCall(cancelled); if (ReferenceEquals(cancelled, Current)) { SetCurrent(GetNext()); } Remove(cancelled); }
void Update() { if (GetComplete()) { completed = true; OnComplete.AttemptCall(); } if (Input.GetKey(KeyCode.Escape)) { OnCancel.AttemptCall(); } }