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