예제 #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);
                });
            }
        }
예제 #2
0
        public WithDeliveryAnimation(Actor self, WithDeliveryAnimationInfo info)
        {
            building = self.Trait <RenderBuilding>();

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