using System; using ET; namespace GFGGame { public class GMController { public static async ETTask GetAllDressUpItem() { GetSuitItemController.enable = false; //获得所有换装部件 var errorCode = await GMSProxy.SendGMToServer("get all dressup"); GetSuitItemController.enable = true; if (errorCode != ET.ErrorCode.ERR_Success) { ErrorCodeController.Handler(errorCode); return; } PromptController.Instance.ShowFloatTextPrompt("已获得所有服装", MessageType.SUCCESS); } public static async ETTask GetAllCardItem() { //获得所有卡牌部件 var errorCode = await GMSProxy.SendGMToServer("get all card"); if (errorCode != ET.ErrorCode.ERR_Success) { ErrorCodeController.Handler(errorCode); return; } PromptController.Instance.ShowFloatTextPrompt("已获得所有卡牌", MessageType.SUCCESS); } public static async ETTask SendGMCommand(string messageGM, string messageSuc) { var errorCode = await GMSProxy.SendGMToServer(messageGM); if (errorCode != ET.ErrorCode.ERR_Success) { ErrorCodeController.Handler(errorCode); return false; } InstanceZonesSProxy.GetInstanceZonesInfos().Coroutine(); MainStorySProxy.GetStoryInfos().Coroutine(); PromptController.Instance.ShowFloatTextPrompt(messageSuc, MessageType.SUCCESS); return true; } } }