示例#1
0
 public void Action()
 {
     if (Check)
     {
         actionObject.Trigger("c+");
     }
     else
     {
         actionObject.Trigger("c-");
     }
 }
示例#2
0
 public void TriggerObject(bool condition, ActionObject action)
 {
     Debug.Log(action.name + ", " + condition);
     if (condition)
     {
         action.Trigger("s+");
     }
     else
     {
         action.Trigger("s-");
     }
 }