// Update is called once per frame void Update() { if (GM.Active) { cooldown -= Time.deltaTime; if (cooldown <= 0) { Granade.Go(transform.position, target, 4, 2, 2, 3); cooldown = Cooldown; } } }
// Update is called once per frame void Update() { if (GM.Active) { cooldown -= Time.deltaTime; if (cooldown <= 0 && IsReady) { Granade.Go(transform.position, target + Random.insideUnitCircle * spread, 5, ExplSize, damage, Suppression); cooldown = Cooldown; } } }