private void UpdateVariant(Model.NodeData n, Variant variant)
        {
            Model.ConnectionPointData p = n.InputPoints.Find(v => v.Id == variant.ConnectionPointId);
            UnityEngine.Assertions.Assert.IsNotNull(p);

            p.Label = variant.Name;
        }
 public override bool IsValidInputConnectionPoint(Model.ConnectionPointData point)
 {
     if (!m_useGroupAsVariants)
     {
         if (m_variants.Count > 0 && m_variants.Find(v => v.ConnectionPointId == point.Id) == null)
         {
             return(false);
         }
     }
     return(true);
 }
 public Variant(string name, Model.ConnectionPointData point)
 {
     m_name    = name;
     m_pointId = point.Id;
 }
 private Model.ConnectionPointData GetConnectionPoint(Model.NodeData n, Variant v)
 {
     Model.ConnectionPointData p = n.InputPoints.Find(point => point.Id == v.ConnectionPointId);
     UnityEngine.Assertions.Assert.IsNotNull(p);
     return(p);
 }