Last updated
private void Awake()
{
// "this" is the instance,
// that we want to use when a message within the instance gets executed.
// You can register instance anytime,
// aslong as you do it before you call the message!
Messenger.RegisterInstance(this);
// Instances can also be registered per message method.
Messenger.RegisterInstance(this, nameof(HelloMessage));
}