private void BotAutoFire() { ellapsedTime += Time.deltaTime; if (ellapsedTime < shotCoolDown) { return; } ellapsedTime = 0f; if (botCanShoot) { playerControl.FireAsBot(); } }