public void CreateCaster() { dummyCaster = new DummyCaster(man.Pawn, this); dummyCaster.Tick(); dummyCaster.SpawnSetup(man.Pawn.Map, false); Verb.caster = dummyCaster; }
public TurretVerb(Verb verb, VerbSource source, AdditionalVerbProps props, VerbManager man) : base(verb, source, props, man) { dummyCaster = new DummyCaster(man.Pawn, this); dummyCaster.Tick(); dummyCaster.SpawnSetup(man.Pawn.Map, false); verb.caster = dummyCaster; verb.castCompleteCallback = () => cooldownTicksLeft = Verb.verbProps.AdjustedCooldownTicks(Verb, man.Pawn); }
public void DestroyCaster() { if (dummyCaster != null) { if (!dummyCaster.Destroyed) { dummyCaster.Destroy(); } dummyCaster = null; } Verb.caster = man.Pawn; }