继续昨天的工程,给Monster添加一个空物体命名为AI,在AI添加脚本BehaviorTree,然后就可以打开行为树编辑器进行编辑了先写好自定义的节点脚本,下面是一个寻找漫游点的行为节点脚本using UnityEngine;using BehaviorDesigner.Runtime.Tasks...
分类:
编程语言 时间:
2015-10-15 17:50:31
阅读次数:
574
Untiy-RPC-Sample 使用UnityEngine中的NetWork创建的服务器类 LO_GameServer.cs ** 通过该工具类能够在Unity程序中快速的创建一个游戏房间服务器,查询房间列表,及发送消息功能 ** using System; using UnityEn...
分类:
编程语言 时间:
2015-10-15 16:43:30
阅读次数:
308
//封装成一个using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Syst...
分类:
Web程序 时间:
2015-10-15 16:00:45
阅读次数:
140
水题:求n^3 = a^3 + b^3 + c^3 ;暴力即可 1 #include 2 using namespace std; 3 int main(){ 4 int n ; 5 cin>>n; 6 for(int i = 3 ; i <= n ; i++){ 7 ...
分类:
其他好文 时间:
2015-10-15 16:00:17
阅读次数:
131
using System;using System.Collections.Generic;using System.IO;using System.Text;using System.Xml;namespace CommonUtil{ /// /// Xml通用操作类 /// public c.....
分类:
其他好文 时间:
2015-10-15 15:53:12
阅读次数:
155
水题:求中位数。 1 #include 2 #include 3 using namespace std; 4 int main(){ 5 int n; 6 int arr[10010]; 7 cin>>n; 8 for(int i = 0 ; i >arr[i];1...
分类:
编程语言 时间:
2015-10-15 15:46:06
阅读次数:
221
Universally Compatible Wireless Power Using the Qi ProtocolWireless charging of portable electronic devices is here now. It will become ubiquitous whe...
分类:
其他好文 时间:
2015-10-15 15:40:48
阅读次数:
826
To mount the CD image and extract the contents:Power on the virtual machine.Log in to the virtual machine using an account with administrator or root ...
分类:
系统相关 时间:
2015-10-15 14:25:23
阅读次数:
256
普通dfs访问每个点对的复杂度是O(n^2)的,显然会超时。考虑访问到当前子树的根节点时,统计所有经过根的点(u, v)满足:dist(u) + dist(v) 2 #include 3 #include 4 using namespace std; 5 const int maxn ...
分类:
其他好文 时间:
2015-10-15 14:19:46
阅读次数:
171
题意: 匹配括号,看是否所有括号都匹配。分析: 空行的时候要输出yes,其它的用栈正常做就行。代码: #include #include #include #include #include using namespace std;bool judge(char a,char b){ i...
分类:
其他好文 时间:
2015-10-15 14:15:14
阅读次数:
301