From 55d7304de1adfbd3888e5a564aacf090c76bf006 Mon Sep 17 00:00:00 2001 From: CaiYanPeng Date: Sat, 9 Oct 2021 14:41:21 +0800 Subject: [PATCH] =?UTF-8?q?pc=E6=89=93=E5=8C=85=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/TouchKit/TouchKitLite/TKLTouch.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Assets/TouchKit/TouchKitLite/TKLTouch.cs b/Assets/TouchKit/TouchKitLite/TKLTouch.cs index cdc4c753..a0ef5edc 100644 --- a/Assets/TouchKit/TouchKitLite/TKLTouch.cs +++ b/Assets/TouchKit/TouchKitLite/TKLTouch.cs @@ -56,12 +56,14 @@ public class TKLTouch public void populate() { #if UNITY_EDITOR || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN || UNITY_WEBPLAYER || UNITY_WEBGL - if (!UnityEditor.EditorApplication.isRemoteConnected) - populateFromMouse(); +#if UNITY_EDITOR + if (!UnityEditor.EditorApplication.isRemoteConnected) +#endif + populateFromMouse(); #else populateWithTouch( Input.touches[0] ); #endif - } + } public bool hasMouseInput()