public void ChildSatisfied(AbstractCondition child)
 {
     if (!this.successes.Contains(child.GetConditionVo().Uid))
     {
         this.successes.Add(child.GetConditionVo().Uid);
     }
     if (this.successes.Count >= this.conditionCount)
     {
         if (Service.Get <GameStateMachine>().CurrentState is HomeState)
         {
             this.parent.OnSuccessHook();
             this.parent.CompleteMission(3);
             return;
         }
         Service.Get <EventManager>().RegisterObserver(this, EventId.GameStateChanged, EventPriority.Default);
     }
 }
Ejemplo n.º 2
0
 public void ChildUpdated(AbstractCondition child, int delta)
 {
     this.parent.UpdateCounter(child.GetConditionVo().Uid, delta);
 }