public override void OnPrimaryUse(InputPacket input, GameObject user) { if (PrimaryAction != null) { int i = CurrentAmmo; if (PrimaryAction.GetComponent <ActionGunshot>() != null) { int ammoConsumed = PrimaryAction.GetComponent <ActionGunshot>().m_weaponStats.AmmoConsumedPerShot; if (ammoConsumed > CurrentAmmo) { AttemptReload(input, user); } } //OverrideCurrentEquipSprite(user); PrimaryAction.SourceEqp = this; user.GetComponent <CharacterBase>().TryAction(PrimaryAction, OnRegisterHit); } }