private static void Init() { if (_ins) { return; } _ins = GetIns <PEIMEN_Entity>(); _event = new PEIEvent_Manager(); _math = new PEIMath(); new PEIMEN_STTimeCC(out _time, I.gameObject); new PEINet_Origin(out _net, I.gameObject); PEIKDE.Log("Entity", "PEIMEN_Entity Init Complete"); }
public async void Awake() { //默认不销毁 DontDestroyOnLoad(gameObject); Event = PEIMEN_System.GetModule <PEIEvent_Manager>(); Math = PEIMEN_System.GetModule <PEIMath>(); Node = PEIMEN_System.GetModule <PEINode_Manager>(); //new PEITime_STTimeCC(out Time, gameObject); //new PEINet_Origin(out Web, gameObject); PEIKDE_Manager.DebugFlag = DebugFlag; PEIKDE.Log("Entity", "Init Done "); #region state //开启整个项目的流程 Assembly = typeof(PEIMEN_Entity).Assembly; await Task.Delay(100); #endregion }