// Token: 0x06008C69 RID: 35945 RVA: 0x0028F708 File Offset: 0x0028D908 public void Initialize(ClientWorld world, ConfigDataWaypointInfo waypointInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitializeClientWorldConfigDataWaypointInfo_hotfix != null) { this.m_InitializeClientWorldConfigDataWaypointInfo_hotfix.call(new object[] { this, world, waypointInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_clientWorld = world; this.m_waypointInfo = waypointInfo; this.m_id = world.GetNextEntityId(); bool flag = waypointInfo.FuncType == WaypointFuncType.WaypointFuncType_Scenario || waypointInfo.FuncType == WaypointFuncType.WaypointFuncType_Portal; this.m_graphicInitScale = 1f; this.m_graphic = world.CreateGraphic(waypointInfo.Model, this.m_graphicInitScale); if (this.m_graphic != null) { this.m_graphic.SetName("Waypoint_" + waypointInfo.ID); this.m_graphic.SetRotation(ClientWorldConst.FaceCameraRotation); if (flag) { this.m_graphic.SetSortingOrder(2); } this.m_graphicUIStateController = this.m_graphic.GetPrefab().GetComponent <CommonUIStateController>(); } GameObject gameObject; if (flag) { gameObject = UnityEngine.Object.Instantiate <GameObject>(world.WaypointUIPrefab, world.WaypointUIRoot.transform, false); } else { gameObject = UnityEngine.Object.Instantiate <GameObject>(world.Waypoint2UIPrefab, world.WaypointUIRoot.transform, false); } if (gameObject != null) { gameObject.name = "Waypoint_" + waypointInfo.ID; this.m_uiInitScale = gameObject.transform.localScale; this.m_uiController = GameObjectUtility.AddControllerToGameObject <WorldWaypointUIController>(gameObject); this.m_uiController.SetWaypoint(this.m_waypointInfo); this.m_uiController.EventOnPointerDown += this.OnUIPointerDown; this.m_uiController.EventOnPointerUp += this.OnUIPointerUp; this.m_uiController.EventOnClick += this.OnUIClick; gameObject.transform.localRotation = ClientWorldConst.FaceCameraRotation; if (flag) { Canvas canvas = gameObject.AddComponent <Canvas>(); canvas.overrideSorting = true; canvas.sortingOrder = 2; gameObject.AddComponent <GraphicRaycaster>(); } } }
// Token: 0x06008C3C RID: 35900 RVA: 0x0028EB90 File Offset: 0x0028CD90 public void Initialize(ClientWorld world, ConfigDataRegionInfo regionInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitializeClientWorldConfigDataRegionInfo_hotfix != null) { this.m_InitializeClientWorldConfigDataRegionInfo_hotfix.call(new object[] { this, world, regionInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_regionInfo = regionInfo; this.m_id = world.GetNextEntityId(); this.m_gameObject = null; }
// Token: 0x06008B97 RID: 35735 RVA: 0x0028B9B4 File Offset: 0x00289BB4 public void Initialize(ClientWorld world, ConfigDataEventInfo eventInfo, RandomEvent randomEvent) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitializeClientWorldConfigDataEventInfoRandomEvent_hotfix != null) { this.m_InitializeClientWorldConfigDataEventInfoRandomEvent_hotfix.call(new object[] { this, world, eventInfo, randomEvent }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_clientWorld = world; this.m_eventInfo = eventInfo; this.m_randomEvent = randomEvent; this.m_id = world.GetNextEntityId(); this.m_graphicInitScale = (float)eventInfo.ModelScale * 0.01f; this.m_graphic = world.CreateGraphic(eventInfo.Model, this.m_graphicInitScale); if (this.m_graphic != null) { this.m_graphic.SetName("Event_" + eventInfo.ID); this.m_graphic.SetRotation(ClientWorldConst.FaceCameraRotation); this.m_graphic.SetSortingOrder(2); } GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(world.EventUIPrefab, world.EventUIRoot.transform, false); if (gameObject != null) { gameObject.name = "Event_" + eventInfo.ID; this.m_uiInitScale = gameObject.transform.localScale; this.m_uiController = GameObjectUtility.AddControllerToGameObject <WorldEventActorUIController>(gameObject); this.m_uiController.SetEvent(eventInfo); this.m_uiController.EventOnPointerDown += this.OnUIPointerDown; this.m_uiController.EventOnPointerUp += this.OnUIPointerUp; this.m_uiController.EventOnClick += this.OnUIClick; gameObject.transform.localRotation = ClientWorldConst.FaceCameraRotation; Canvas canvas = gameObject.AddComponent <Canvas>(); canvas.overrideSorting = true; canvas.sortingOrder = 2; gameObject.AddComponent <GraphicRaycaster>(); } this.PlayAnimation("idle", true); }
// Token: 0x06008BE7 RID: 35815 RVA: 0x0028D194 File Offset: 0x0028B394 public void Initialize(ClientWorld world) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitializeClientWorld_hotfix != null) { this.m_InitializeClientWorld_hotfix.call(new object[] { this, world }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_clientWorld = world; this.m_id = world.GetNextEntityId(); GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(world.PlayerUIPrefab, world.PlayerUIRoot.transform, false); if (gameObject != null) { gameObject.name = "Player"; this.m_uiController = GameObjectUtility.AddControllerToGameObject <WorldPlayerActorUIController>(gameObject); gameObject.transform.localRotation = ClientWorldConst.FaceCameraRotation; } }