Example #1
0
    void SetupMegaBoxes()
    {
        mainContainer.AddChild(newPlayerBox = new NewPlayerBox());
        newPlayerBox.SetToCell(CellManager.megaNewPlayer);
        megaBoxes.Add(newPlayerBox);

        mainContainer.AddChild(resetBox = new ResetBox());
        resetBox.SetToCell(CellManager.megaReset);
        megaBoxes.Add(resetBox);

        mainContainer.AddChild(sortBox = new SortBox());
        sortBox.SetToCell(CellManager.megaSort);
        megaBoxes.Add(sortBox);

        mainContainer.AddChild(volumeBox = new VolumeBox());
        volumeBox.SetToCell(CellManager.megaVolume);
        megaBoxes.Add(volumeBox);

        newPlayerBox.SignalPress += HandleNewPlayerTap;
        resetBox.SignalPress     += HandleResetTap;
        sortBox.SignalPress      += HandleSortTap;
        volumeBox.SignalPress    += HandleVolumeTap;
    }
Example #2
0
    void SetupMegaBoxes()
    {
        mainContainer.AddChild(newPlayerBox = new NewPlayerBox());
        newPlayerBox.SetToCell(CellManager.megaNewPlayer);
        megaBoxes.Add(newPlayerBox);

        mainContainer.AddChild(resetBox = new ResetBox());
        resetBox.SetToCell(CellManager.megaReset);
        megaBoxes.Add(resetBox);

        mainContainer.AddChild(sortBox = new SortBox());
        sortBox.SetToCell(CellManager.megaSort);
        megaBoxes.Add(sortBox);

        mainContainer.AddChild(volumeBox = new VolumeBox());
        volumeBox.SetToCell(CellManager.megaVolume);
        megaBoxes.Add(volumeBox);

        newPlayerBox.SignalPress += HandleNewPlayerTap;
        resetBox.SignalPress += HandleResetTap;
        sortBox.SignalPress += HandleSortTap;
        volumeBox.SignalPress += HandleVolumeTap;
    }