using System; namespace ET.Client { public static partial class EnterMapHelper { public static async ETTask EnterMapAsync(Scene root) { try { G2C_EnterMap g2CEnterMap = await root.GetComponent().Call(new C2G_EnterMap()) as G2C_EnterMap; // 等待场景切换完成 await root.GetComponent().Wait(); EventSystem.Instance.Publish(root, new EventType.EnterMapFinish()); } catch (Exception e) { Log.Error(e); } } public static async ETTask Match(Fiber fiber) { try { G2C_Match g2CEnterMap = await fiber.Root.GetComponent().Call(new C2G_Match()) as G2C_Match; } catch (Exception e) { Log.Error(e); } } } }