Beispiel #1
0
        private void CreateSingleButton(BeatMapMetadata beatMapMeta)
        {
            GameObject button = Instantiate(this.beatMapButtonTemp, this.gameObject.transform, false);

            button.GetComponent <BeatMapButton>().Ctor(beatMapMeta);
            this.beatMaps.Add(button);
        }
Beispiel #2
0
        public void Ctor(BeatMapMetadata metadata)
        {
            this.beatMapMetadata      = metadata;
            this.beatMapNameText.text = this.beatMapMetadata.Title;

            //Todo: implement difficulty calculation
            this.difficulty.text = "0";
        }
Beispiel #3
0
 public static void RemoveMap(BeatMapMetadata metadata)
 {
     Context.Remove(metadata);
     Context.SaveChanges();
 }