예제 #1
0
    void Update()
    {
        ReloadLeft -= TimeManager.DeltaTime;

        if (PlayerInput.IsShooting())
        {
            if (ReloadLeft <= 0f)
            {
                Parameters.SpawnBullet(BulletSpawnPoint, BulletsRoot);
                ReloadLeft = Parameters.ReloadTime;
            }
        }
    }