コード例 #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();
 }