Example #1
0
    private void ShootBow()
    {
        if (Time.time < _lastShotTime + ShootPeriod)
        {
            return;
        }

        _lastShotTime = Time.time;
        _bow.ShootArrow(Camera.main.transform); // TODO: actual target should be given, for better aim
    }