C# FingerManager / MultiTouch help / Message handlers

I’m trying to use the FingerManager.cs found on the Unity Community Wiki. I am getting errors with the message handlers.

  1. I assume these are individual scripts that are placed on the object to be interacted with.

Here the code I’m using
It’s in C#

void FingerMove (iPhoneTouch evt) {

}

Can someone tell me what wrong?

I am getting the following error

" error CS0116: A namespace can only contain types and namespace declarations"

Thank you

I think you might be missing or have too many curly brackets in the surrounding code.

Hmm! I’m not sure what you mean. I can try and add or remove, but then… well I’m just not sure.

I like the games you make

I got it mate!!

Good job. Those curly brackets can be a stealthy nemesis.

It wasn’t so much the curly brace… I was missing
I forgot it was not javascript

using UnityEngine;
using System.Collections;

So I did not import the Unity classes. That’s what was tripping the errors.

Thanks for your help.