void MinionAttack() { if (Time.time >= nextTimeShoot) { kunaiScript.MinionThrow(); nextTimeShoot = Time.time + 2f; } }
void TurretAttack() { if (Time.time >= nextTimeShoot) { kunaiScript.MinionThrow(); nextTimeShoot = Time.time + fireRate; } }