private void TryActions(SetComponentEnabledAction[] actions, Transform actor)
 {
     if (actions == null) return;
     foreach (SetComponentEnabledAction action in actions) {
         if (action != null && action.condition != null && action.condition.IsTrue(actor)) DoAction(action, actor);
     }
 }
 public void DoAction(SetComponentEnabledAction action, Transform actor)
 {
     if ((action != null) && (action.target != null))
     {
         Tools.SetComponentEnabled(action.target, action.state);
     }
 }
 public void DoAction(SetComponentEnabledAction action, Transform actor)
 {
     if ((action != null) && (action.target != null)) {
         Tools.SetComponentEnabled(action.target, action.state);
     }
 }