Exemplo n.º 1
0
 void Update()
 {
     if (lfg && active && Input.GetKeyDown(key))
     {
         lfg.Fire(null);
     }
 }
Exemplo n.º 2
0
 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();
     }
 }