临时提交尝试将状态机xml改成Json

This commit is contained in:
DESKTOP-5RP3AKU\Jisol
2024-11-13 19:47:48 +08:00
parent de8b204ebd
commit ae81ee6c84
316 changed files with 13752 additions and 35589 deletions

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 2c10ac9a7e8ceb24994ecba611b5d5c0
guid: 162eca789d514894384be81207fe8848
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@@ -5,6 +5,7 @@ using JNGame.Runtime.Util;
using UnityEngine;
namespace BehaviorTreeSlayer
{
#if UNITY_EDITOR
/// <summary>
/// Agent of behavior tree,
/// This class is not required.
@@ -19,8 +20,14 @@ namespace BehaviorTreeSlayer
//随机数
private Func<LFloat,LFloat,LFloat> nRandomFloat = RandomUtil.SyncRandomFloat(100000);
public void UnRegist(string key)
{
actions.Remove(key);
}
public void Regist(string key, Action<object> onEvent)
{
if (actions.ContainsKey(key))
{
actions[key] = onEvent;
@@ -30,10 +37,7 @@ namespace BehaviorTreeSlayer
actions.Add(key, onEvent);
}
}
public void UnRegist(string key)
{
actions.Remove(key);
}
public void Dispatch(string key, object obj)
{
if (actions.ContainsKey(key))
@@ -107,4 +111,5 @@ namespace BehaviorTreeSlayer
return RandomFloat(LFloat.L0,LFloat.L1);
}
}
#endif
}

Some files were not shown because too many files have changed in this diff Show More