Exemplo n.º 1
0
    // Called by an Animation Event
    public override void Shoot()
    {
        RangedWeapon rw     = playerMgmt.weaponMgmt.currentlyEquippedWeapon as RangedWeapon;
        Vector3      aimDir = (playerMgmt.cameraCtrl.debugTransform.position - projectileSpawn.position).normalized;

        rw.SpawnProjectile(projectileSpawn, aimDir);
    }