Exemplo n.º 1
0
 void Complete()
 {
     OnComplete.AttemptCall();
     if (Setups != null)
     {
         Setups.ForEach(setup => setup.Remove());
     }
 }
Exemplo n.º 2
0
    protected void Complete()
    {
        allowed = AllowedToComplete();

        if (allowed)
        {
            SaveCompleted(true);
            OnComplete.AttemptCall();
        }
    }
Exemplo n.º 3
0
    void Update()
    {
        if (GetComplete())
        {
            completed = true;
            OnComplete.AttemptCall();
        }

        if (Input.GetKey(KeyCode.Escape))
        {
            OnCancel.AttemptCall();
        }
    }
Exemplo n.º 4
0
    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);
    }
Exemplo n.º 5
0
 void OnObjectiveComplete(Objective obj)
 {
     MDebug.Log("Objective complete " + obj.Config.Title);
     OnComplete.AttemptCall(obj);
 }