Ejemplo n.º 1
0
        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);
                });
            }
        }
Ejemplo n.º 2
0
        public WithDeliveryAnimation(Actor self, WithDeliveryAnimationInfo info)
        {
            building = self.Trait <RenderBuilding>();

            this.info = info;
        }
Ejemplo n.º 3
0
 public WithActiveAnimation(Actor self, WithActiveAnimationInfo info)
 {
     disabled       = self.TraitsImplementing <IDisable>();
     renderBuilding = self.Trait <RenderBuilding>();
     this.info      = info;
 }