MapHelper.cs 569 B

123456789101112131415161718192021
  1. using System;
  2. namespace ET
  3. {
  4. public static class MapHelper
  5. {
  6. public static async ETVoid EnterMapAsync(Scene zoneScene, string sceneName)
  7. {
  8. try
  9. {
  10. G2C_EnterMap g2CEnterMap = await zoneScene.GetComponent<SessionComponent>().Session.Call(new C2G_EnterMap()) as G2C_EnterMap;
  11. Game.EventSystem.Publish(new EventType.EnterMapFinish() {ZoneScene = zoneScene}).Coroutine();
  12. }
  13. catch (Exception e)
  14. {
  15. Log.Error(e);
  16. }
  17. }
  18. }
  19. }