public void PreInit(MainMenuController mainMenuController) { this.mainMenuController = mainMenuController; basePool = new BasePool(content, template, Keys.Menu.MAX_PLAYERS_COUNT); basePool.Init(); }
public void PreInit(UIPanels UIPanels) { this.UIPanels = UIPanels; buildingListings = new List <BuildingListing>(); buildingsPool = new BasePool(buildingsInfoHolder, buildingListing, Keys.Board.PLACE_COUNT / 2); buildingsPool.Init(); lC = SettingsController.instance.languageController; }
public void PreInit(UIPanels UIPanels) { this.UIPanels = UIPanels; playerListings = new List <IngamePlayerListing>(); basePool = new BasePool(content, template, Keys.Menu.MAX_PLAYERS_COUNT); basePool.Init(); gc = GameplayController.instance; }
public void PreInit(UIPanels controller) { myListings = new List <TradeListing>(); theirListings = new List <TradeListing>(); myPool = new BasePool(myContent, template, Keys.Menu.MAX_PLAYERS_COUNT); theirPool = new BasePool(theirContent, template, Keys.Menu.MAX_PLAYERS_COUNT); myPool.Init(); theirPool.Init(); uIPanels = controller; gC = GameplayController.instance; lC = SettingsController.instance.languageController; }
public override void InitBox() { base.InitBox(); buttonPool = new BasePool(buttons, null, Keys.Popups.QUESTIONBOX_BUTTONS_AMOUNT); List <GameObject> poolObjects = new List <GameObject>(); //Lista obiektów podpiętych na starcie do obiektu buttons foreach (Button b in buttons.GetComponentsInChildren <Button>()) { if (b.gameObject != buttons) { poolObjects.Add(b.gameObject); } } buttonPool.Init(poolObjects); }
public override void InitBox() { base.InitBox(); buttonPool = new BasePool(buttons, null, GameplayController.instance.session.playerCount); List <GameObject> poolObjects = new List <GameObject>(); foreach (Toggle b in buttons.GetComponentsInChildren <Toggle>()) { if (b.gameObject != buttons) { buttonList.Add(b.gameObject); poolObjects.Add(b.gameObject); } } buttonPool.Init(poolObjects); }
public void PreInit(MainMenuController mainMenuController) { this.mainMenuController = mainMenuController; basePool = new BasePool(content, template, 3); basePool.Init(); }