private void OnClickBattleScene(CUIEvent uievent) { float num; Ray ray = Camera.main.ScreenPointToRay((Vector3)uievent.m_pointerEventData.position); this._clickPickHeroID = 0; if (this._pickPlane.Raycast(ray, out num)) { Vector3 point = ray.GetPoint(num); SceneManagement instance = Singleton <SceneManagement> .GetInstance(); SceneManagement.Coordinate coord = new SceneManagement.Coordinate(); VInt3 num2 = (VInt3)point; instance.GetCoord_Center(ref coord, num2.xz, 0xbb8); instance.UpdateDirtyNodes(); instance.ForeachActorsBreak(coord, new SceneManagement.Process_Bool(this.TrySearchHero)); if (this._clickPickHeroID > 0) { this.PickHero(this._clickPickHeroID); } } }
private void OnClickBattleScene(CUIEvent uievent) { Ray ray = Camera.main.ScreenPointToRay(uievent.m_pointerEventData.position); this._clickPickHeroID = 0u; float distance; if (this._pickPlane.Raycast(ray, out distance)) { Vector3 point = ray.GetPoint(distance); SceneManagement instance = Singleton <SceneManagement> .GetInstance(); SceneManagement.Coordinate coord = default(SceneManagement.Coordinate); instance.GetCoord_Center(ref coord, ((VInt3)point).get_xz(), 3000); instance.UpdateDirtyNodes(); instance.ForeachActorsBreak(coord, new SceneManagement.Process_Bool(this.TrySearchHero)); if (this._clickPickHeroID > 0u) { this.PickHero(this._clickPickHeroID); } } }