Example #1
0
 void Cancel()
 {
     OnCancel.AttemptCall();
     if (Setups != null)
     {
         Setups.ForEach(setup => setup.Remove());
     }
 }
Example #2
0
    void onCancel(T cancelled)
    {
        OnCancel.AttemptCall(cancelled);

        if (ReferenceEquals(cancelled, Current))
        {
            SetCurrent(GetNext());
        }

        Remove(cancelled);
    }
Example #3
0
    void Update()
    {
        if (GetComplete())
        {
            completed = true;
            OnComplete.AttemptCall();
        }

        if (Input.GetKey(KeyCode.Escape))
        {
            OnCancel.AttemptCall();
        }
    }