Beispiel #1
0
 public static void Init()
 {
     if (SYS.debugSingleton)
     {
         print("Singleton Init");
     }
     objs = TransTool.GetComsScene <SingletonBase>();
 }
Beispiel #2
0
 void Awake()
 {
     list = TransTool.GetComsScene <HideOnAwake>();
     foreach (var hoa in list)
     {
         hoa.SetParent(transform);
     }
     gameObject.SetActive(false);
 }
Beispiel #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);
        }
Beispiel #4
0
 void HaveALook()
 {
     list = TransTool.GetComsScene <HideOnAwake>();
 }
Beispiel #5
0
 void GetList()
 {
     listDis = TransTool.GetComsScene <DisActiveOnAwake>();
     list    = TransTool.GetComsScene <ActiveOnAwake>();
 }