Пример #1
0
 public static void Init()
 {
     if (SYS.debugSingleton)
     {
         print("Singleton Init");
     }
     objs = TransTool.GetComsScene <SingletonBase>();
 }
Пример #2
0
 void Awake()
 {
     list = TransTool.GetComsScene <HideOnAwake>();
     foreach (var hoa in list)
     {
         hoa.SetParent(transform);
     }
     gameObject.SetActive(false);
 }
Пример #3
0
        public static Transform GetOrAddTransScnRoot(string name)
        {
            Transform obj;
            var       find = TransTool.SearchScnRootCache(name);

            if (find != null)
            {
                obj = find;
            }
            else
            {
                var c = new GameObject(name);
                obj = c.transform;
            }
            return(obj);
        }
Пример #4
0
 void HaveALook()
 {
     list = TransTool.GetComsScene <HideOnAwake>();
 }
Пример #5
0
 void GetList()
 {
     listDis = TransTool.GetComsScene <DisActiveOnAwake>();
     list    = TransTool.GetComsScene <ActiveOnAwake>();
 }