public Fabric.Component[] GetComponentsByName(string destinationComponent, GameObject parentGameObject)
 {
     if (_globalComponentTable.ContainsKey(destinationComponent))
     {
         Fabric.Component component = _globalComponentTable[destinationComponent];
         if (component != null)
         {
             List <ComponentInstance> list = component.FindInstances(parentGameObject, createIfNoneFound: false);
             if (list != null && list.Count > 0)
             {
                 Fabric.Component[] array = new Fabric.Component[list.Count];
                 for (int i = 0; i < list.Count; i++)
                 {
                     array[i] = list[i]._instance;
                 }
                 return(array);
             }
         }
     }
     return(null);
 }