Fix conditional compilation.

This commit is contained in:
2023-01-01 20:07:58 +08:00
parent 2b5bc5dd08
commit e8f8593555
4 changed files with 7 additions and 1 deletions

View File

@@ -98,7 +98,7 @@ namespace Cryville.Common.Unity {
#elif UNITY_ANDROID
GameObject sbtn = GameObject.Instantiate<GameObject>(prefabButton);
sbtn.GetComponentInChildren<Text>().text = "Storage";
sbtn.GetComponentInChildren<Button>().onClick.AddListener(() => OnDriveChanged(new DirectoryInfo(androidStorage)));
sbtn.GetComponentInChildren<Button>().onClick.AddListener(() => ChangeDirectory(new DirectoryInfo(androidStorage)));
sbtn.transform.SetParent(drives, false);
#else
#error No update GUI logic