public DamageBodyManager() { _instance = this; m_rootObj = GlobalVarFun.GetGlobalObj("DamageBodyRoot"); if (m_rootObj == null) { m_bLoaded = false; return; } m_bLoaded = true; }
public RoleManager() { _instance = this; m_rootObj = GlobalVarFun.GetGlobalObj("RoleRoot"); if (m_rootObj == null) { m_bLoaded = false; return; } for (int i = 0; i < 4; i++) { GameObject side = new GameObject(); // GlobalVarFun.GetChild(m_rootObj, "side_" + i); if (side == null) { break; } side.name = "side_" + i; GlobalVarFun.AttachChild(m_rootObj, side); m_sideList.Add(side); } m_bLoaded = true; }