[Resolved] Expression denotes a `type' Error

Hello. This is a simple problem that I need someone else’s eyes on.

TileInformation deffendingInfo = deffendingTile.GetComponent<TileInformation();

I get this error,

Assets/Scripts/Manager.cs(139,62): error CS0119: Expression denotes a type', where a variable’, value' or method group’ was expected

that points to the above line. deffendingTile is a GameObject that gets passed in as an argument. Whats going on here? Thanks.

Full method

private void TileAttack(GameObject attackingTile, GameObject deffendingTile){ // Resolves an attack
        TileInformation attackingInfo = attackingTile.GetComponent<TileInformation>();
        TileInformation deffendingInfo = deffendingTile.GetComponent<TileInformation();

        if (attackingInfo.PlayerControled != deffendingInfo.PlayerControled && deffendingInfo.TileIsAdjecent(attackingTile)){ // If the attack is a valid. The tiles arent controlled by the same person and they are adjecent
            int attackStrength = attackingInfo.Strength;
            int deffendStrength = deffendingInfo.Strength;

            deffendingInfo.Strength -= attackingInfo.Strength;
            attackingInfo.Strength -= deffendingInfo.Strength;
        }
    }
TileInformation deffendingInfo = deffendingTile.GetComponent<TileInformation>();

You’re missing the closing carat on the GetComponent() method.

Thanks

You are welcome.