Fix conditional compilation.
This commit is contained in:
@@ -98,7 +98,7 @@ namespace Cryville.Common.Unity {
|
|||||||
#elif UNITY_ANDROID
|
#elif UNITY_ANDROID
|
||||||
GameObject sbtn = GameObject.Instantiate<GameObject>(prefabButton);
|
GameObject sbtn = GameObject.Instantiate<GameObject>(prefabButton);
|
||||||
sbtn.GetComponentInChildren<Text>().text = "Storage";
|
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);
|
sbtn.transform.SetParent(drives, false);
|
||||||
#else
|
#else
|
||||||
#error No update GUI logic
|
#error No update GUI logic
|
||||||
|
@@ -73,7 +73,9 @@ namespace Cryville.Crtr.Browsing {
|
|||||||
Application.LoadLevelAdditive("Play");
|
Application.LoadLevelAdditive("Play");
|
||||||
#endif
|
#endif
|
||||||
GameObject.Find("/Master").GetComponent<Master>().HideMenu();
|
GameObject.Find("/Master").GetComponent<Master>().HideMenu();
|
||||||
|
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
|
||||||
DiscordController.Instance.SetPlaying(string.Format("{0} - {1}", detail.Meta.song.name, detail.Meta.name), detail.Meta.length);
|
DiscordController.Instance.SetPlaying(string.Format("{0} - {1}", detail.Meta.song.name, detail.Meta.name), detail.Meta.length);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OpenConfig(int id, ChartDetail detail) {
|
public void OpenConfig(int id, ChartDetail detail) {
|
||||||
|
@@ -284,7 +284,9 @@ namespace Cryville.Crtr {
|
|||||||
#elif UNITY_5_3_OR_NEWER
|
#elif UNITY_5_3_OR_NEWER
|
||||||
SceneManager.UnloadScene("Play");
|
SceneManager.UnloadScene("Play");
|
||||||
#endif
|
#endif
|
||||||
|
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
|
||||||
DiscordController.Instance.SetIdle();
|
DiscordController.Instance.SetIdle();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#pragma warning restore IDE1006
|
#pragma warning restore IDE1006
|
||||||
|
|
||||||
|
@@ -4,6 +4,7 @@ using UnityEngine;
|
|||||||
|
|
||||||
namespace Cryville.Crtr {
|
namespace Cryville.Crtr {
|
||||||
internal class DiscordController : MonoBehaviour {
|
internal class DiscordController : MonoBehaviour {
|
||||||
|
#if UNITY_STANDALONE_WIN || UNITY_EDITOR_WIN
|
||||||
public static DiscordController Instance;
|
public static DiscordController Instance;
|
||||||
|
|
||||||
const long CLIENT_ID = 1059021675578007622L;
|
const long CLIENT_ID = 1059021675578007622L;
|
||||||
@@ -50,5 +51,6 @@ namespace Cryville.Crtr {
|
|||||||
},
|
},
|
||||||
}, Callback);
|
}, Callback);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user