diff --git a/Design/InputAdaptation.md b/Design/InputAdaptation.md index 304cc2b54..685334b87 100644 --- a/Design/InputAdaptation.md +++ b/Design/InputAdaptation.md @@ -6,6 +6,8 @@ 以UGUI的Input组件为例,需要给Input 绑定以下脚本: ``` +#if UNITY_WEBGL || UNITY_EDITOR + using UnityEngine; using System.Collections; using WeChatWASM; @@ -89,4 +91,7 @@ public class Inputs : MonoBehaviour, IPointerClickHandler, IPointerExitHandler } } } + +#endif + ```