47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
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<GameElement> gameElementList;
|
|
|
|
[NonSerialized]
|
|
public List<UnityAction> lowPriorityActions;
|
|
|
|
public BaseElement_BM matchedBM { get; set; }
|
|
|
|
public BeatmapContainer()
|
|
{
|
|
gameElementList = new List<GameElement>();
|
|
lowPriorityActions = new List<UnityAction>();
|
|
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();
|
|
}
|
|
}
|
|
|
|
} |