Beispiel #1
0
    private void Update()
    {
        Vector3 direction = Vector3.zero;

        if (_target != null)
        {
            direction = (_target.position - this.transform.position).normalized;
        }

        if (_bulletHandler != null)
        {
            _bulletHandler.Fire(direction);
        }
    }