Наследование: UnityEngine.MonoBehaviour
 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);
 }
Пример #2
0
        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);
        }