Example #1
0
 public DeadBuildingState(Actor self, DeadBuildingStateInfo info)
 {
     this.info = info;
     rs        = self.Trait <RenderSimple>();
     self.Trait <Health>().RemoveOnDeath = !rs.DefaultAnimation.HasSequence("dead");
 }
Example #2
0
 public DeadBuildingState(Actor self, DeadBuildingStateInfo info)
 {
     this.info = info;
     rs        = self.Trait <RenderSprites>();
     self.Trait <Health>().RemoveOnDeath = !rs.anim.HasSequence("dead");
 }