コード例 #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;
            }
        }
コード例 #2
0
 protected override void TraitDisabled(Actor self)
 {
     wsb.CancelCustomAnimation(self);
 }
コード例 #3
0
 public void Delivered(Actor self)
 {
     wsb.CancelCustomAnimation(self);
 }
コード例 #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;
            }
        }
コード例 #5
0
 public void Charging(Actor self, Target target)
 {
     wsb.PlayCustomAnimation(self, info.ChargeSequence, () => wsb.CancelCustomAnimation(self));
 }