public WithMakeAnimation(ActorInitializer init, WithMakeAnimationInfo info) { this.info = info; var self = init.self; renderBuilding = self.Trait <RenderBuilding>(); var building = self.Trait <Building>(); if (!building.SkipMakeAnimation) { renderBuilding.PlayCustomAnimThen(self, info.Sequence, () => { building.NotifyBuildingComplete(self); }); } }
public WithDeliveryAnimation(Actor self, WithDeliveryAnimationInfo info) { building = self.Trait <RenderBuilding>(); this.info = info; }
public WithActiveAnimation(Actor self, WithActiveAnimationInfo info) { disabled = self.TraitsImplementing <IDisable>(); renderBuilding = self.Trait <RenderBuilding>(); this.info = info; }