示例#1
0
            public virtual void OnGUI()
            {
                TriggerName oldTriggerName = ShowTriggerName();
                TriggerName newTriggerName = (TriggerName)EditorGUILayout.EnumPopup(
                    "Trigger name", oldTriggerName, GUILayout.ExpandWidth(false)
                    );

                triggerName      = newTriggerName.ToString();
                isTriggerChanged = oldTriggerName != newTriggerName;
            }
示例#2
0
 public string GetTriggerName()
 {
     return(triggerName.ToString());
 }
示例#3
0
 private void SetTrigger(TriggerName trigger)
 {
     animator.SetTrigger(trigger.ToString());
 }
示例#4
0
 protected Trigger(TriggerName tn)
 {
     this.triggerName = tn.ToString();
 }