void Update() { if (lfg && active && Input.GetKeyDown(key)) { lfg.Fire(null); } }
void Update() { cooldown += Time.deltaTime; if (lfg && active && Input.GetKeyDown(key) && cooldown > reloadTime) { lfg.Fire(GameObject.FindGameObjectWithTag("CrossHair").transform); cooldown = 0; this.GetComponent <PlayerController>().InCombat(); } }