Example #1
0
    public void Test()
    {
        List <GameObject> games = new List <GameObject>();

        Utility.IntilizationBlocks <UIGrid>(tran, 10, itemPre, games, false);
        IEnumerable <UIGrid> grids = games.Where(go => go.GetComponent <UIGrid>() != null).Select(go => go.GetComponent <UIGrid>());

        Utility.ResetAllGrids <List <UIGrid> >(grids.ToList());
        Utility.ActiveAllObjects <List <GameObject> >(games, true);
        tran.Reposition();
        tran.repositionNow = true;
    }