using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class charactershoot : MonoBehaviour {
public Gun gun;
public int shootButton;
public KeyCode reloadKey;
void Update() {
if(Input.GetButtonDown("Fire1")) {
Gun.Shoot();
}
if(Input.GetKeyDown("r")) {
Gun.Reload();
}
}
}