public void Init(GridPoolManager parent,int mIndex) { mParent = parent; for(int i = 0;i<GridPoolManager.RowNum;i++) { SingleGrid newRow = GetSingleGrid(); newRow.Init(i,mIndex); GridGroup[i]=newRow; } }
void Awake() { instance = this; }