예제 #1
0
    private void Awake()
    {
        lockButton.onClick.AddListener(OnClickedLock);

        tiles = new MonoBehaviourPooler<byte, TileToggle>(tilePrefab,
                                                          tileContainer,
                                                          InitialiseTile);

        pages = new MonoBehaviourPooler<int, Toggle>(pagePrefab,
                                                     pageContainer,
                                                     InitialisePage);

        pages.SetActive(Enumerable.Range(0, 8));
        pages.Get(0).isOn = true;
    }