Beispiel #1
0
        void ITick.Tick(Actor self)
        {
            if (!buildComplete || IsTraitDisabled)
            {
                return;
            }

            if (--ticks <= 0)
            {
                wsb.PlayCustomAnimation(self, Info.Sequences.Random(Game.CosmeticRandom), () => wsb.CancelCustomAnimation(self));
                ticks = Info.Interval;
            }
        }
 protected override void TraitDisabled(Actor self)
 {
     wsb.CancelCustomAnimation(self);
 }
 public void Delivered(Actor self)
 {
     wsb.CancelCustomAnimation(self);
 }
Beispiel #4
0
        public void Tick(Actor self)
        {
            if (!buildComplete || IsTraitDisabled)
            {
                return;
            }

            if (--ticks <= 0)
            {
                if (!(Info.PauseOnLowPower && self.IsDisabled()))
                {
                    wsb.PlayCustomAnimation(self, Info.Sequences.Random(Game.CosmeticRandom), () => wsb.CancelCustomAnimation(self));
                }
                ticks = Info.Interval;
            }
        }
Beispiel #5
0
 public void Charging(Actor self, Target target)
 {
     wsb.PlayCustomAnimation(self, info.ChargeSequence, () => wsb.CancelCustomAnimation(self));
 }