上一页 1 2 3 4 5 6 7 8 ··· 30 下一页
摘要: 由于动作设计经常修改动作,所以每次改完都要再添加一次animation的事件,所以就直接写了个脚本,当然以后可以做成表格,然后用脚本从表格中读取,然后生成对应的animation事件。在Assets/Editor目录中放置代码,参考代码如下:using UnityEngine;using Syste... 阅读全文
posted @ 2014-08-07 09:35 softimagewht 阅读(399) 评论(0) 推荐(0)
摘要: 或许广大程序员之前接触过游戏状态机,这已不是个新鲜的词汇了。其重要性我也不必多说了,但今天我要讲到的一个状态机框架或许您以前并未遇到过。所以,我觉得有必要将自己的心得分享一下。下面是一个链接:http://wiki.unity3d.com/index.php/Finite_State_Machine... 阅读全文
posted @ 2014-08-04 09:10 softimagewht 阅读(2940) 评论(0) 推荐(1)
摘要: http://www.cnblogs.com/88999660/archive/2013/03/15/2961663.html 阅读全文
posted @ 2014-08-03 20:48 softimagewht 阅读(496) 评论(0) 推荐(0)
摘要: // C# Example // Builds an asset bundle from the selected objects in the project view. // Once compiled go to "Menu" -> "Assets" and select on... 阅读全文
posted @ 2014-08-03 20:46 softimagewht 阅读(757) 评论(0) 推荐(0)
摘要: 两步实现超实用的XML存档本套存档的优点:易使用,跨平台,防作弊(内容加密 + 防拷贝)脚本下载地址使用方法非常简单:把GameDataManager和XmlSaver两个脚本添加至工程后(1)新建一个GameObject,起名GameDataManager并将GameDataManager脚本拖到... 阅读全文
posted @ 2014-08-03 19:37 softimagewht 阅读(2387) 评论(0) 推荐(0)
摘要: using UnityEngine;using System.Collections;using System;[Serializable]public class test{ public int n1 = 0; public int n2 = 5; // [NonSeriali... 阅读全文
posted @ 2014-08-01 17:58 softimagewht 阅读(176) 评论(0) 推荐(0)
摘要: 什么是序列化与反序列化???序列化和反序列化,我们可能经常会听到,其实通俗一点的解释,序列化就是把一个对象保存到一个文件或数据库字段中去,反序列化就是在适当的时候把这个文件再转化成原来的对象使用。 当两个进程在进行远程通信时,彼此可以发送各种类型的数据。无论是何种类型的数据,都会以二进制序列的形式在... 阅读全文
posted @ 2014-08-01 17:23 softimagewht 阅读(2822) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/linlf03/archive/2011/11/03/2234424.html1、序列化定义:将对象转换为容易传输的格式的过程。例如,可以序列化一个对象,然后使用 HTTP 通过 Internet 在客户端和服务器之间传输该对象。反之,反序列化根据流重新... 阅读全文
posted @ 2014-08-01 14:58 softimagewht 阅读(3816) 评论(0) 推荐(0)
摘要: using UnityEngine;using System.Linq;using System.Collections.Generic;[RequireComponent(typeof(CharacterMotor))][RequireComponent(typeof(CharacterStatu... 阅读全文
posted @ 2014-07-31 13:57 softimagewht 阅读(1035) 评论(0) 推荐(0)
摘要: /// /// Floating text./// the GUI Text Floating system/// using UnityEngine;using System.Collections;public class FloatingText : MonoBehaviour { pu... 阅读全文
posted @ 2014-07-31 10:52 softimagewht 阅读(471) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 30 下一页