Ejemplo n.º 1
0
        public static string GetFullName(Transform c)
        {
            if (c == null)
            {
                return(string.Empty);
            }
            Transform parent = c.parent;

            return(UIPanelStats.GetFullName(parent) + "/" + c.name);
        }
Ejemplo n.º 2
0
 private UIPanelStats.Entry EnsureExists(List <UIPanelStats.Entry> list, UIPanel panel)
 {
     UIPanelStats.Entry entry = list.Find((UIPanelStats.Entry x) => x.panel == panel);
     if (entry == null)
     {
         entry = new UIPanelStats.Entry
         {
             panel     = panel,
             name      = UIPanelStats.GetFullName(panel.transform),
             startTime = Time.realtimeSinceStartup
         };
         list.Add(entry);
     }
     return(entry);
 }