| | |
| | | protected override void Awake() |
| | | { |
| | | base.Awake(); |
| | | |
| | | if (Application.platform == RuntimePlatform.WindowsEditor || |
| | | Application.platform == RuntimePlatform.WindowsPlayer) |
| | | { |
| | | GameConfig.useSDK = false; |
| | | GMBtn.SetActive(true); |
| | | } |
| | | else |
| | | { |
| | | GMBtn.SetActive(false); |
| | | } |
| | | //这里为了方便直接使用Endless2D |
| | | GameObject root = GameObject.Find("ManagerRoot"); |
| | | |
| | | if (root == null) |
| | | { |
| | | if (Application.platform == RuntimePlatform.WindowsEditor || |
| | | Application.platform == RuntimePlatform.WindowsPlayer) |
| | | { |
| | | GameConfig.useSDK = false; |
| | | GMBtn.SetActive(true); |
| | | } |
| | | else |
| | | { |
| | | GMBtn.SetActive(false); |
| | | } |
| | | |
| | | root = new GameObject("ManagerRoot"); |
| | | |