pc打包错误

This commit is contained in:
CaiYanPeng 2021-10-09 14:41:21 +08:00
parent f1ddde8a2e
commit 55d7304de1

View File

@ -56,12 +56,14 @@ public class TKLTouch
public void populate() public void populate()
{ {
#if UNITY_EDITOR || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN || UNITY_WEBPLAYER || UNITY_WEBGL #if UNITY_EDITOR || UNITY_STANDALONE_OSX || UNITY_STANDALONE_WIN || UNITY_WEBPLAYER || UNITY_WEBGL
if (!UnityEditor.EditorApplication.isRemoteConnected) #if UNITY_EDITOR
populateFromMouse(); if (!UnityEditor.EditorApplication.isRemoteConnected)
#endif
populateFromMouse();
#else #else
populateWithTouch( Input.touches[0] ); populateWithTouch( Input.touches[0] );
#endif #endif
} }
public bool hasMouseInput() public bool hasMouseInput()