| 123456789101112131415161718192021 |
- using System;
- namespace ET
- {
- public static class MapHelper
- {
- public static async ETVoid EnterMapAsync(Scene zoneScene, string sceneName)
- {
- try
- {
- G2C_EnterMap g2CEnterMap = await zoneScene.GetComponent<SessionComponent>().Session.Call(new C2G_EnterMap()) as G2C_EnterMap;
- Game.EventSystem.Publish(new EventType.EnterMapFinish() {ZoneScene = zoneScene}).Coroutine();
- }
- catch (Exception e)
- {
- Log.Error(e);
- }
- }
- }
- }
|