protected override bool OnActivated(ActionResult actionResult, float dt) { IRayWeapon newWeapon = (IRayWeapon)weapon.Clone(); newWeapon.OnCreation(actionResult, source, this); return(true); }
public RayAction( Bounded <float> delay, TargetingInfo targetableTypes, Costs costs, bool needsTarget, ActionSounds actionSounds, IRayWeapon weapon) : base(delay, targetableTypes, costs, needsTarget, actionSounds) { this.weapon = weapon; this.aIInfo = new RayActionAIInfo(costs.ActivationCost); }
protected RayAction(RayAction copy) : base(copy) { this.weapon = (IRayWeapon)copy.weapon.Clone(); }