Declaring events is similar to declaring delegates in that an event has a specific method signature. We'll use a delegate to specify the method signature we want the event to have, then create the event using the delegate type and the event keyword:
public delegate void EventDelegate(int param1, string param2);
public event EventDelegate eventInstance;
This setup allows us to treat eventInstance as a method because it's a delegate type, which means we can send it out at any time by calling it:
eventInstance(35, "John Doe");
Your next task is to create an event of your own and fire it off in the appropriate place inside PlayerBehavior.