LogSProxy.cs 413 B

123456789101112131415161718
  1. using ET;
  2. namespace GFGGame
  3. {
  4. public class LogSProxy
  5. {
  6. public static void SendLog(string message)
  7. {
  8. Session session = GameGlobal.zoneScene.GetComponent<SessionComponent>().Session;
  9. if (session == null || session.IsDisposed)
  10. {
  11. return;
  12. }
  13. session.Send(new C2Log_AddLog() { Content = message});
  14. }
  15. }
  16. }