public State(int stateNumber, EnterDelegate enter, DuringDelegate during, ExitDelegate exit) { this.stateNumber = stateNumber; enterMethod = enter; duringMethod = during; exitMethod = exit; }
/// <summary> Handle the Enter event. </summary> /// <param name="e"> The event data. <see cref="XawCrossingEvent"/> </param> /// <remarks> Set XawCrossingEvent. Set result to nonzero to stop further event processing. </remarks> internal virtual void OnEnter(XrwCrossingEvent e) { EnterDelegate enter = Enter; if (enter != null) { enter(this, e); } }
public BT_BehaviorDelegator(NodeDescription.BT_NodeType type, UpdateDelegate onUpdate, InitDelegate onInit = null, EnterDelegate onEnter = null, ExitDelegate onExit = null, TerminateDelegate onTerm = null) { Description.Type = type; initDel = onInit; enterDel = onEnter; updateDel = onUpdate; exitDel = onExit; terminateDel = onTerm; }
public EnterNamePopup(SerializedProperty profiles, EnterDelegate cb) { EnterCB = cb; List <string> existingProfileNames = new List <string>(); for (int i = 0; i < profiles.arraySize; i++) { string profileName = profiles.GetArrayElementAtIndex(i).FindPropertyRelative("m_Name").stringValue; if (!string.IsNullOrEmpty(profileName)) { existingProfileNames.Add(profileName); } } m_NewProfileName = ObjectNames.GetUniqueName(existingProfileNames.ToArray(), m_NewProfileName); }
public EnterNamePopup(SerializedProperty tags, EnterDelegate cb) { EnterCB = cb; List <string> existingTagNames = new List <string>(); for (int i = 0; i < tags.arraySize; i++) { string tagName = tags.GetArrayElementAtIndex(i).stringValue; if (!string.IsNullOrEmpty(tagName)) { existingTagNames.Add(tagName); } } m_NewTagName = ObjectNames.GetUniqueName(existingTagNames.ToArray(), m_NewTagName); }
internal EnterEnabledTextBox(EnterDelegate d) : base() { this.enterHandle = d; }
public EnterNamePopup(SerializedProperty tags, EnterDelegate cb) { this.EnterCB = cb; List<string> list = new List<string>(); for (int i = 0; i < tags.arraySize; i++) { string stringValue = tags.GetArrayElementAtIndex(i).stringValue; if (!string.IsNullOrEmpty(stringValue)) { list.Add(stringValue); } } this.m_NewTagName = ObjectNames.GetUniqueName(list.ToArray(), this.m_NewTagName); }