| | |
| | | |
| | | // 3.1 适配欧盟政策:在 viewDidAppear 中调用 adaptingEUGDPR(文档要求) |
| | | // UnityViewControllerBase.mm 在较新 Unity 版本(如 2022.3+)中可能不存在 |
| | | string viewControllerPath = projectPath + "/Classes/UnityViewControllerBase.mm"; |
| | | string viewControllerPath = projectPath + "/Classes/UI/UnityViewControllerBase.mm"; |
| | | if (System.IO.File.Exists(viewControllerPath)) |
| | | { |
| | | var _viewController = new XClass(viewControllerPath); |
| | |
| | | } |
| | | else |
| | | { |
| | | Debug.LogWarning("[XCodeProjectMod] UnityViewControllerBase.mm 文件不存在,跳过 viewDidAppear 注入。此 Unity 版本可能已移除该文件。"); |
| | | Debug.LogError("[XCodeProjectMod] UnityViewControllerBase.mm 文件不存在,跳过 viewDidAppear 注入。此 Unity 版本可能已移除该文件。"); |
| | | } |
| | | } |
| | | |