Esempio n. 1
0
    private void Shoot()
    {
        Vector3 bowRotationVector = GetToPlayerAngle(true);

        bowRotationVector.z = 0;
        bowRotationVector.Normalize();
        bowRotationVector *= 1.5f;
        ObjectController.CreateEnemyArrow(transform.position + bowRotationVector, bowRotationVector, 50);
        SoundController.PlayArrowShoot();
    }