1 using UnityEngine;
2 using
System.Collections;
3
4 public
class CanUseTouch : MonoBehaviour {
5
6     
//Can use touch
7     
static bool canUseTouchBool;
8
9     
public static bool canUseTouchM()
10     {
11         
if (SystemInfo.deviceType == DeviceType.Handheld)
12         {
13             canUseTouchBool =
true;
14         }
15         
else
16         {
17             canUseTouchBool =
false;
18         }
19
20         
return canUseTouchBool;//true for test
21
22     }
23 }


Can use touch

return canUseTouchBool;true for test



Gõ tìm kiếm nhanh...