Exemple #1
0
    private void BotAutoFire()
    {
        ellapsedTime += Time.deltaTime;
        if (ellapsedTime < shotCoolDown)
        {
            return;
        }

        ellapsedTime = 0f;

        if (botCanShoot)
        {
            playerControl.FireAsBot();
        }
    }