// Use this for initialization void Start() { ammo = GetComponent <Ammo>(); gunEquipper = GetComponent <GunEquipper>(); }
void Start() { ammo = GetComponentInChildren <Ammo>(); gunEquipper = GetComponentInChildren <GunEquipper>(); }
// Start is called before the first frame update void Start() { //get ammo and gun equipper components ammo = GetComponent <Ammo>(); gunEquipper = GetComponent <GunEquipper>(); }
// Use this for initialization void Start() { gunEquipper = GetComponent <GunEquipper>(); ammo = GetComponent <Ammo>(); source = GetComponent <AudioSource>(); }
// Start is called before the first frame update void Start() { // This just gets the Ammo and GunEquipper component attached to the Player GameObject. ammo = GetComponent <Ammo>(); gunEquipper = GetComponent <GunEquipper>(); }
private void Start() { m_Ammo = GetComponent <Ammo>(); m_GunEquipper = GetComponent <GunEquipper>(); }