Ejemplo n.º 1
0
    public void Awake()
    {
        //添加代理
        agent = gameObject.AddComponent <Agent>();

        //注册命令
        agent.AddCommand(new CmdChatText(MsgInsideDef.MsgChatText, "", false));
        agent.AddCommand(new CmdInputAction(MsgInsideDef.MsgInputAction, 0, 0, MsgBroadcastType.Broadcast));
    }