void Start() { gameStarter = GetComponent <GameStarter>(); gameRunner = GetComponent <GameRunner>(); gameEnder = GetComponent <GameEnder>(); ColorSchemesManager.setColorScheme(DataAndSettingsManager.getColorSchemeID()); gameEnder.loadAds(); onInitialize(); }
public void selectAction() { if (this.isLocked) { return; } if (OnSelectColorScheme != null) { OnSelectColorScheme(); // deselect all list items } this.setSelected(true); ColorSchemesManager.setColorScheme(this.colorSchemeID); DataAndSettingsManager.setColorSchemeID(this.colorSchemeID); FindObjectOfType <AudioManager>().playButtonSound(); }