Custom events in unity
public delegate void nameOfDelegate(string text);
public static event nameOfDelegate OnStringEvent;
To raise:
OnStringEvent("ABC");
NameOfClassWithEvent.OnStringEvent += SomeMethod;
The method:
void SomeMethod(string text)
{
//Do something
}