12345678910111213141516171819202122232425262728 |
- using System;
- using System.Collections;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using GFGGame;
- using UnityEngine.Rendering;
- namespace ET
- {
- public static class GMSProxy
- {
- public static async ETTask<int> SendGMToServer(string message)
- {
- M2C_GM response = (M2C_GM)await MessageHelper.SendToServer(new C2M_GM() { message = message });
- if (response != null)
- {
- if (response.Error == ErrorCode.ERR_Success)
- {
- return ErrorCode.ERR_Success;
- }
- return response.Error;
- }
- return ErrorCode.ERR_NetWorkError;
- }
- }
- }
|