// Use this for initialization void Start() { data = PersistantData.instance; itemList = new List <Pokemon>(); buttonObjectPool = GetComponent <ButtonPool>(); RefreshDisplay(); }
void SetupUI() { trackEnabled = new List <bool>(); for (int i = 0; i < midiFile.Tracks; i++) { trackEnabled.Add(true); } InitializeTracksEnabled(); shownButtons = new Dictionary <int, BeatButton>(); buttonPool = new ButtonPool(buttonPrefab); tickToPixelRatio = 1f; var size = grid.sizeDelta; size.x = beats[beats.Count - 1].Time / tickToPixelRatio; grid.sizeDelta = size; ShowButtons(scrollBar.value); scrollBar.value = 0; grid.parent.GetComponent <RectTransform>(); musicSlider.maxValue = musicLength; musicSlider.minValue = 0; musicSlider.value = 0; }
void Awake() { sharedInstance = this; }
public void SetPoolManager(ButtonPool bp) { this.poolManager = bp; }