|
|
@ -76,6 +76,18 @@ namespace Fungus |
|
|
|
string keyName = objectProp.objectReferenceValue.name; |
|
|
|
string keyName = objectProp.objectReferenceValue.name; |
|
|
|
LuaBindings luaBindings = target as LuaBindings; |
|
|
|
LuaBindings luaBindings = target as LuaBindings; |
|
|
|
element.FindPropertyRelative("key").stringValue = GetUniqueKey(luaBindings, keyName.ToLower(), index); |
|
|
|
element.FindPropertyRelative("key").stringValue = GetUniqueKey(luaBindings, keyName.ToLower(), index); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Auto select any Flowchart component in the object |
|
|
|
|
|
|
|
GameObject go = objectProp.objectReferenceValue as GameObject; |
|
|
|
|
|
|
|
if (go != null) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Component flowchart = go.GetComponent("Fungus.Flowchart"); |
|
|
|
|
|
|
|
if (flowchart != null) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
SerializedProperty componentProp = element.FindPropertyRelative("component"); |
|
|
|
|
|
|
|
componentProp.objectReferenceValue = flowchart; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (objectProp.objectReferenceValue != null) |
|
|
|
if (objectProp.objectReferenceValue != null) |
|
|
|