WX-Game1/Assets/Scripts/GlobalManager.cs

49 lines
838 B
C#

using System.Collections;
using System.Collections.Generic;
using MotionFramework;
using UnityEngine;
/// <summary>
/// JSON消息数据结构类
/// 用于解析来自网页的JSON消息
/// </summary>
[System.Serializable]
public class MessageData
{
/// <summary>
/// 消息代码
/// </summary>
public string code;
/// <summary>
/// 消息类型
/// none: 没有任何状态
/// sign: 显示签到弹窗
/// </summary>
public string type;
}
public class GlobalManager : ModuleSingleton<GlobalManager>, IModule
{
/// <summary>
/// 消息数据
/// </summary>
public MessageData messageData;
public void OnCreate(object createParam)
{
}
public void OnUpdate()
{
}
public void OnDestroy()
{
}
public void OnGUI()
{
}
}