bool OnAny(ActionResult actionResult, float dt) { IWeapon newWeapon = (IWeapon)weapon.Clone(); newWeapon.OnCreation(actionResult, source, this); newWeapon.OnCollision(actionResult, target); return(true); }
protected override bool OnTargetAquired(GameResult gameResult, float dt, IControlable newTarget) { IWeapon newWeapon = (IWeapon)weapon.Clone(); newWeapon.OnCreation(gameResult, source, this); newWeapon.WeaponInfo.Target = newTarget; newWeapon.OnCollision(gameResult, newTarget); return(true); }