Пример #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 WithActiveAnimation(Actor self, WithActiveAnimationInfo info)
 {
     renderBuilding = 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;
 }