-
Notifications
You must be signed in to change notification settings - Fork 6
/
B3Functions.cs
38 lines (31 loc) · 1.04 KB
/
B3Functions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
namespace Behavior3Sharp
{
public class B3Functions
{
public static string CreateUUID()
{
return Guid.NewGuid().ToString();
}
//public static BaseNode CreateBehavior3Instance<T>(string classname)
//{
// return CreateInstance<BaseNode>("Behavior3Sharp", "Behavior3Sharp", classname);
//}
//private static T CreateInstance<T>(string asmname, string spacename, string classname)
//{
// try
// {
// string fullname = spacename + "." + classname;
// string path = fullname + "," + asmname;
// Type o = Type.GetType(fullname);
// System.Object obj = Activator.CreateInstance(o, true);
// return (T)obj;
// }
// catch(Exception e)
// {
// Debug.Log("CreateInstance Error:" + e.Message.ToString());
// return default(T);
// }
//}
}
}