using UnityEngine; using System.Collections; using AX.MessageSystem; public sealed class MessageSystem : MonoBehaviour { void Awake() { DontDestroyOnLoad(gameObject); } void Update() { MessageDispatcher.Update(); } public void OnDisable() { MessageDispatcher.Clear(); } }