public void Register(GameMessageActor instance) { string actorName = instance.GetType().Name; gameMessageActors[actorName] = instance; UnityGameMessage unityGameMessage = new UnityGameMessage(); unityGameMessage.actorName = actorName; unityGameMessage.messageType = UnityGameMessage.MessageType.Register; SendUnityGameMessage(unityGameMessage); }