using System; using System.Collections; using System.Collections.Generic; using Ichni.RhythmGame.Beatmap; using UniRx; using UnityEngine; using UnityEngine.Events; namespace Ichni.RhythmGame { public class BeatmapContainer : IBaseElement { public List gameElementList; [NonSerialized] public List lowPriorityActions; public BaseElement_BM matchedBM { get; set; } public BeatmapContainer() { gameElementList = new List(); lowPriorityActions = new List(); Observable.EveryUpdate().Subscribe(_ => ExecuteLowPriorityActions()); } public void ExecuteLowPriorityActions() { if (lowPriorityActions.Count > 0) { lowPriorityActions.ForEach(low => low.Invoke()); lowPriorityActions.Clear(); } } public void SetUpInspector() { throw new System.NotImplementedException(); } public void Refresh() { throw new System.NotImplementedException(); } } }