/// <summary> /// Initializes a new instance of the <see cref="WeaponShotEventArgs" /> class. /// </summary> /// <param name="weapon">The weapon.</param> /// <param name="hittype">The hittype.</param> /// <param name="hitid">The hitid.</param> /// <param name="position">The position.</param> public WeaponShotEventArgs(Weapon weapon, BulletHitType hittype, int hitid, Vector3 position) : base(position) { Weapon = weapon; BulletHitType = hittype; HitId = hitid; }
public void UpdateBulletInfo(BulletType _bulletType) { switch (_bulletType) { case BulletType.Normal: sizeScale = 0.3f; damage = 1.0f; shootPeriod = 1.0f; baseVelocity = 10.0f; hitType = BulletHitType.Default; spriteFilePath = BulletSpriteFilePath.Normal; break; } }