Ejemplo n.º 1
0
        protected override bool OnActivated(ActionResult actionResult, float dt)
        {
            IRayWeapon newWeapon = (IRayWeapon)weapon.Clone();

            newWeapon.OnCreation(actionResult, source, this);
            return(true);
        }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 protected RayAction(RayAction copy)
     : base(copy)
 {
     this.weapon = (IRayWeapon)copy.weapon.Clone();
 }