View MessagingBehavior.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace Messaging { | |
public abstract class MessagingBehavior : MonoBehaviour { | |
public delegate void MessageHandler(MessagingBehavior source, object data); | |
private void SendMessage (MessagingBehavior source, GameObject target, string message, object data) { | |
MessageRouter.Inst.SendMessage(source, target, message, data); |