/// <summary> /// 发送视频邀请 /// </summary> public void SendVideoInvite() { MilkUIChat chat = GameObject.FindObjectOfType <MilkUIChat>(); if (chat != null) { chat.Filter.FilterText($"[视频电视mod]一起来看:{GetUrl()}", 0); } }
/// <summary> /// 日志输出 /// </summary> /// <param name="msg">消息</param> public static void SendChat(string msg) { if (setting.logToggle) { MilkUIChat chat = GameObject.FindObjectOfType <MilkUIChat>(); if (chat != null) { chat.Filter.FilterText(msg, 0); } } mod.Logger.Log(msg); }