08 2016 档案
摘要:socket 服务器端: 1.创建socket Socket tcpClient = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);//三个参数分别为枚举类型(网络),Socket类型,协议 2
阅读全文
摘要:using UnityEngine;using System.Collections; public class Skill : MonoBehaviour { public float coldTime=2;//技能冷却时间 private UISprite sprite; bool isCold
阅读全文
摘要:一、屏幕坐标转换为世界坐标。 1.游戏逻辑,根据界面布局,将墙体控制到对应的位置; vector3 position=Camer.main.ScreenToWorldPoint(new vetor2(Screen.));//得到最右上的点。 位置有了,解决大小。通过自身的BoxCollider中的s
阅读全文
浙公网安备 33010602011771号