public virtual void OnGUI() { TriggerName oldTriggerName = ShowTriggerName(); TriggerName newTriggerName = (TriggerName)EditorGUILayout.EnumPopup( "Trigger name", oldTriggerName, GUILayout.ExpandWidth(false) ); triggerName = newTriggerName.ToString(); isTriggerChanged = oldTriggerName != newTriggerName; }
public string GetTriggerName() { return(triggerName.ToString()); }
private void SetTrigger(TriggerName trigger) { animator.SetTrigger(trigger.ToString()); }
protected Trigger(TriggerName tn) { this.triggerName = tn.ToString(); }