Ejemplo n.º 1
0
 internal void RemoveAttachedComponent(AttachableComponent <IAttachableComponent> attachedComponent)
 {
     if (attachedComponent.component is AttachedDataValue av)
     {
         // DestroyCallBack?.Invoke(av.topic);
     }
 }
Ejemplo n.º 2
0
 internal bool ShouldCreateComponent(AttachableComponent <IAttachableComponent> c)
 {
     if (ShouldCreate == null)
     {
         return(true);
     }
     if (c.component is AttachedDataValue av)
     {
         return(ShouldCreate.Invoke(av.topic));
     }
     return(true);
 }
Ejemplo n.º 3
0
 internal void HandleAttachedComponent(GameObject linkObject, AttachableComponent <IAttachableComponent> attachedComponent, Link link)
 {
     if (Utils.FindChildOrCreateWithComponent(linkObject.transform, attachedComponent.component.name, out GameObject attachedComponentGO, out AttachedValue v))
     {
         v.AttachedComponent = attachedComponent;
         if (attachedComponent.component is AttachedDataValue av)
         {
             //Instaniate GameObject with Raffi's ToolTip Manager
             //AttachablesManager.Instance.Subscribe(av.topic, )
             CreateCallBack?.Invoke(av.topic, linkObject);
         }
     }
 }