Exemplo n.º 1
0
    public void SpawnSeeker(Muzzle muzzle)
    {
        ProjectileBase instance = Instantiate(_prefab);

        instance.Initialize(_selectedWeapon.Value);

        instance.transform.position    = _weaponDirection.position;
        instance.transform.eulerAngles = _rotationAnchor * GetAngle(muzzle);

        _onFire.Raise();
    }
Exemplo n.º 2
0
    private float GetAngle(Muzzle muzzle)
    {
        float rootAngle = GetRootAngle(muzzle);

        return(ApplyInterval(muzzle, rootAngle));
    }