Event in unity

Hi,I want to create an event:When an enemy touch my player,he triggers an evenement called FightBegin and something appends.
I have several problems with this .
My idea was to let the enemy called a function of my script EventManager called Launchfight and that function will launch the event message and all gameobject “know” this.
Actually, i made multiple attempts.To try if that works,my RicoController script have to debug “event ok”.I tried multiple ways but i’m actually lost.
Can someone help me?
(for helping you,i have this error now:Assets\Scripts\ennemydetector.cs(51,18): error CS1061: ‘Component’ does not contain a definition for ‘interim’ and no accessible extension method ‘interim’ accepting a first argument of type ‘Component’ could be found (are you missing a using directive or an assembly reference?)) But i want to solve my story of event and if i take the bad way ,don’t try to solve the error.
Linked bellow three scripts.RicoController is player’s script and anemy detector is enemy’s script(No interest after line 50).

6642970–758386–EventManager.cs (556 Bytes)
6642970–758389–RicoController.cs (1.62 KB)
6642970–758392–ennemydetector.cs (3.88 KB)

How to report your problem productively in the Unity3D forums:

http://plbm.com/?p=220

Remember, code is only a tiny part of the problem. Only you can debug if the scene itself is set up properly.

Nobody is going to download three C# files and try to sort out what you might have misconfigured in the scene.

To help gain more insight into your problem, I recommend liberally sprinkling Debug.Log() statements through your code to display information in realtime.

Doing this should help you answer these types of questions:

  • is this code even running? which parts are running? how often does it run?
  • what are the values of the variables involved? Are they initialized?

Knowing this information will help you reason about the behavior you are seeing.