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