Unity
#if UNITY_ANDROID || UNITY_EDITOR_WIN 语句块 #endif
Lua
if UnityEngine.Application.platform == UnityEngine.RuntimePlatform.Android then 语句块 end