Create a static reference to the Unity MonoBehaviour messages. Select the "Messages from" http://docs.unity3d.com/ScriptReference/MonoBehaviour.html and substitute with:
public const string $1 = "$1";