随笔分类 -  unity

摘要:using UnityEngine;using System.Collections;using System;using System.Net;using System.IO;public class Load : MonoBehaviour { AsyncOperation l; void Start () { // Application.backgroundLoadingPriority = ThreadPriority.Low; // l = Application.LoadLevelAsync("game"); StartCoro... 阅读全文
posted @ 2012-07-17 02:30 solq 阅读(2525) 评论(0) 推荐(0) 编辑
摘要:如果两张图片放在不同图集里,最上面的调 position.z -15 左右就可以了 阅读全文
posted @ 2012-07-04 17:49 solq 阅读(1586) 评论(0) 推荐(0) 编辑
摘要:<title>模拟服务端攻击算法。。。汗。。 solq</title><body> <style> #target1,#target2,.s{ color:red; position:absolute; } #target1{ top:330px; left:500px; } </style> <div id="target1">*1</div> <div id="target2">*2</div></body><script&g 阅读全文
posted @ 2012-06-25 15:39 solq 阅读(530) 评论(0) 推荐(0) 编辑
摘要:编写:solqblog:http://www.cnblogs.com/solq资源放在Assets\StreamingAssets\ 目录SXMLTool.cs/*编写:solqblog:www.cnblogs.com/solq*/using UnityEngine;using System.Xml.Serialization;using System.IO;using System.Text;using System.Xml;using System.Collections.Generic;public class SXMLTool{ public static string getA... 阅读全文
posted @ 2012-06-13 09:37 solq 阅读(1121) 评论(0) 推荐(0) 编辑
摘要:https://github.com/khrona/UnityAwehttps://github.com/kamante/UnityAwesomiumhttp://awesomium.com/ 阅读全文
posted @ 2012-05-25 16:58 solq 阅读(391) 评论(0) 推荐(0) 编辑
摘要:由于Unity3D中一些腳本的方法只能用在JS中,在C#中是無效的,而C#可以與服務器端通訊,JS本身卻不行。所以勢必會遇到這兩種語言腳本中方法的互相調用,以下是示例。兩個文件 test1.js 和 test2.cstest1.jsfunctionOnGUI(){if(GUI.Button(Rect(25,25,100,30),"JS Call CS")){varc=gameObject.GetComponent("test2");c.PrintTest();}}functiontestPrint(){print("CS CallJS" 阅读全文
posted @ 2012-05-24 23:26 solq 阅读(11997) 评论(0) 推荐(1) 编辑
摘要:1.给按钮加 button tween 脚本 ,target objcet 拖上去 : 注意 :ifDisabledOnPlay 要开启。。。开启后target objcet 可以隐藏2.给target objcet 加 tween 类型脚本,如 postion.. 注意,加上脚本后,把脚本的勾去掉,,,不然一运行游戏就执行 anim 了。这害死人了,调了很久3.可以加个 group 标识,,,注意,两边都要对应 阅读全文
posted @ 2012-05-23 10:24 solq 阅读(813) 评论(0) 推荐(0) 编辑
摘要:TextAsset t = (TextAsset)Resources.Load("skill2"); XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml(t.text.ToString().Trim()); XmlElement n = (XmlElement)xmlDoc.SelectSingleNode("/datas/data[@skillID='1002']"); if (n != null) { p... 阅读全文
posted @ 2012-05-21 13:40 solq 阅读(15609) 评论(4) 推荐(1) 编辑
摘要:/*编写:围城(solq)日期:2012-5-8blog:http://www.cnblogs.com/solq/*/using UnityEngine;using System.Collections;using System.Xml;public class ReadXml : MonoBehaviour { void Start () { print(Application.dataPath); string url = Application.dataPath + "/test.xml"; XmlDocument xmldoc = new... 阅读全文
posted @ 2012-05-10 13:20 solq 阅读(1741) 评论(0) 推荐(0) 编辑
摘要:unity csharp socket 异步通信 客户端作者:围城(solq)bolg:http://www.cnblogs.com/solq/服务端用java nio 测试过是可以的。。。。 ...demo:http://unitysgui.sinaapp.com/chat转载请注明出处。。。。。。。View Code using UnityEngine;using System.Collections;using System.Net.Sockets;using System.Net;using System;using System.Text;using System.Threading 阅读全文
posted @ 2012-04-23 23:50 solq 阅读(6671) 评论(1) 推荐(0) 编辑
摘要:java-json-unity通信http://files.cnblogs.com/solq/java-json-unity%E9%80%9A%E4%BF%A1.rar 阅读全文
posted @ 2012-04-16 11:57 solq 阅读(407) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示