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); }
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; } }
public void Charging(Actor self, Target target) { wsb.PlayCustomAnimation(self, info.ChargeSequence, () => wsb.CancelCustomAnimation(self)); }