using UnityEngine;
public abstract class Gun : Item
{
[Header("Effects")]
public ParticleSystem[] muzzleFlash;
public GameObject dropMag;
[Header("IK")]
public Transform ref_right_hand_grip;
public Transform ref_left_hand_grip;
[Range(0, 1)]
public float rightWeight, leftWeight;
public abstract override void Use(bool isShooting);
public abstract override void UpdateWeapon();
public abstract void Reload();
public void DropMag()
{
Destroy(Instantiate(dropMag), 5f);
}
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter