diff --git a/Assets/Scripts/Controller/OperationController.cs b/Assets/Scripts/Controller/OperationController.cs index dfad5464..07853dce 100644 --- a/Assets/Scripts/Controller/OperationController.cs +++ b/Assets/Scripts/Controller/OperationController.cs @@ -147,7 +147,7 @@ public class OperationController : MonoSingleton else if (this.index > targetIndex) { var seq = ActionKit.Sequence(); - for (int i = this.index; i > targetIndex; i--) + for (int i = this.index; i >= targetIndex; i--) { // 重置动作 直接重置 IAction resetAction = ActionHelper.GetActionAndSub(steps[i].Reset); diff --git a/Assets/Scripts/UI/UITools.cs b/Assets/Scripts/UI/UITools.cs index 36c4bff3..9fbeb43e 100644 --- a/Assets/Scripts/UI/UITools.cs +++ b/Assets/Scripts/UI/UITools.cs @@ -44,6 +44,11 @@ namespace QFramework.Example foreach (var device in mData.devices) { var item = DeviceController.Instance.GetDevice(device); + if (item==null) + { + Debug.LogError(device + ":没有找到对应的Device配置"); + return; + } GameObject obj = GameObject.Instantiate(ItemPrefab.gameObject, Content); Debug.Log(item.Name + "????"); obj.name = item.Name; diff --git a/Doc/Xml閰嶇疆鏂囨。.xml b/Doc/Xml閰嶇疆鏂囨。.xml index e59c82cd..0b3a9b2b 100644 --- a/Doc/Xml閰嶇疆鏂囨。.xml +++ b/Doc/Xml閰嶇疆鏂囨。.xml @@ -21,13 +21,16 @@ - + + wrongEvent="" + rightScore="" + wrongScore="" + scoreStepName="鎵嬫湳鍑嗗鍣ㄦ閫夋嫨">