Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 public Variant(string name, Model.ConnectionPointData point)
 {
     m_name    = name;
     m_pointId = point.Id;
 }
Ejemplo n.º 4
0
 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);
 }