摘要:
题目:Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is like:3... 阅读全文
摘要:
一、用NGUI创建虚拟摇杆贴图先创建一个sprite作为背景叫做JoyStick并添加一个BoxCollider,再创建一个sprite child作为虚拟摇杆中间的按钮,叫做button二、通过虚拟摇杆获得x,y偏移值 1 using UnityEngine; 2 using System.Col... 阅读全文
摘要:
使用NetworkReachability判断手机游戏当前的网络连接类型,是wifi还是234G 1 using UnityEngine; 2 using System.Collections; 3 4 public class Test : MonoBehaviour { 5 6 st... 阅读全文