浏览代码

Merge branch 'state-machine-improvements' into main

/main
Ciro Continisio 4 年前
当前提交
edb25cc1
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 6
      UOP1_Project/Assets/Scripts/StateMachine/Editor/TransitionTableEditor.cs

6
UOP1_Project/Assets/Scripts/StateMachine/Editor/TransitionTableEditor.cs


var serializedTransition = new SerializedTransition(_transitions, i);
if (serializedTransition.FromState.objectReferenceValue == null)
{
Debug.LogError("Transition with invalid state found in table " + serializedObject.targetObject.name + ", deleting...");
Debug.LogError("Transition with invalid \"From State\" found in table " + serializedObject.targetObject.name + ", deleting...");
if (serializedTransition.FromState.objectReferenceValue == null)
if (serializedTransition.ToState.objectReferenceValue == null)
Debug.LogError("Transition with invalid state found in table " + serializedObject.targetObject.name + ", deleting...");
Debug.LogError("Transition with invalid \"Target State\" found in table " + serializedObject.targetObject.name + ", deleting...");
_transitions.DeleteArrayElementAtIndex(i);
serializedObject.ApplyModifiedProperties();
Reset();

正在加载...
取消
保存