public static void Init() { if (isInit) { MyLogger.Log(LOG_TAG, "don't initialize EntityFacotry twice!"); return; } isInit = true; objectList = new List <EntityObject>(); objRecycler = new Recycler(); }
public static void Init(Transform viewRoot) { if (isInit) { return; } isInit = true; viewRoot = viewRoot; mapObjectList = new DictionaryExt <EntityObject, ViewObject>(); objRecycler = new Recycler(); }