Exemplo n.º 1
0
 public BarracksUnderConstructionState(BarracksStateMachine owner,
                                       Health.Reader inHealth,
                                       NPCSpawnerBehaviour inNPCSpawnerBehaviour) : base(owner)
 {
     health = inHealth;
     npcSpawnerBehaviour = inNPCSpawnerBehaviour;
 }
Exemplo n.º 2
0
 private static bool TryingToDecreaseHealthBelowZero(this Health.Reader health, int delta)
 {
     return(health.Data.currentHealth == 0 && delta < 0);
 }