public override void OnEnter() { if (reset.Value) { reset.Value = false; nextItemIndex = 0; } gdeData = GDEHelpers.GDEGetAllDataBy(GDEDataType.Item, schema.Value); if (nextItemIndex == 0) { if (gdeData.Count == 0) { Fsm.Event(failureEvent); Finish(); } if (startIndex.Value > 0) { nextItemIndex = startIndex.Value; } } DoGetNextItem(); Finish(); }
public override void OnEnter() { List <string> allSchemas = GDEHelpers.GDEGetAllDataBy(GDEDataType.Schema).ToStringList(); if (Fsm.GetOwnerDefaultTarget(gameObject).GetComponent <PlayMakerArrayListProxy>() != null) { PlayMakerArrayListProxy _proxy = GetArrayListProxyPointer(Fsm.GetOwnerDefaultTarget(gameObject), reference.Value, false); _proxy.AddRange(allSchemas, string.Empty); } if (viaProxyReference != null) { viaProxyReference.AddRange(allSchemas, string.Empty); } if (storeAsString != null) { foreach (string schema in allSchemas) { if (schema == (string)allSchemas.ToArray().GetValue(allSchemas.ToArray().Length - 1)) { storeAsString.Value = string.Concat(storeAsString.Value + schema); } else { storeAsString.Value = string.Concat(storeAsString.Value + schema + ", "); } } storeAsString.Value.Remove(storeAsString.Value.Length - 2); } if (storeAsStringArray != null) { storeAsStringArray.Values = allSchemas.ToArray(); } }