void Complete() { OnComplete.AttemptCall(); if (Setups != null) { Setups.ForEach(setup => setup.Remove()); } }
protected void Complete() { allowed = AllowedToComplete(); if (allowed) { SaveCompleted(true); OnComplete.AttemptCall(); } }
void Update() { if (GetComplete()) { completed = true; OnComplete.AttemptCall(); } if (Input.GetKey(KeyCode.Escape)) { OnCancel.AttemptCall(); } }
void onComplete(T completable) { if (!CanComplete(completable)) { return; } if (ReferenceEquals(completable, Current)) { SetCurrent(GetNext()); Remove(completable); OnCurrentComplete.AttemptCall(completable); } else { Remove(completable); } OnComplete.AttemptCall(completable); }
void OnObjectiveComplete(Objective obj) { MDebug.Log("Objective complete " + obj.Config.Title); OnComplete.AttemptCall(obj); }