Example #1
0
 protected override void OnDisable()
 {
     base.OnDisable();
     AcceptableTasks.SetActive(typeof(AcceptCollectItem <LaborGroup>), true);
     if (UI.Instance != null)
     {
         UI.Instance.DestroyProgressBar(pbar);
         pbar = null;
     }
 }
Example #2
0
 protected override void OnSetState(DevelopmentState state)
 {
     base.OnSetState(state);
     if (state == DevelopmentState.Abandoned)
     {
         Inventory["Milkshakes"].Clear();
     }
     else if (state == DevelopmentState.Flooded)
     {
         AcceptableTasks.DeactivateAll();
     }
     else
     {
         AcceptableTasks.ActivateAll();
     }
 }
Example #3
0
 protected virtual void OnInitAcceptableTasks(AcceptableTasks a)
 {
 }
Example #4
0
 protected override void OnInitAcceptableTasks(AcceptableTasks a)
 {
     a.Add(new AcceptCollectItem <HealthGroup> ());
 }
Example #5
0
 protected override void OnInitAcceptableTasks(AcceptableTasks a)
 {
     a.Add(new AcceptDeliverItem <MilkshakeGroup> ());
     a.Add(new AcceptDeliverItem <CoffeeGroup> ());
 }
Example #6
0
 public void AutoConstruct()
 {
     PerformableTasks[typeof(ConsumeItem <LaborGroup>)].Start();
     AcceptableTasks.SetActive(typeof(AcceptCollectItem <LaborGroup>), false);
 }