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