46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Ichni.RhythmGame.Beatmap;
|
|
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>();
|
|
// UniRx Observable.EveryUpdate 已移除:低优先级操作由 ElementUpdateScheduler Phase 8 在 TickLate 中驱动
|
|
}
|
|
|
|
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();
|
|
}
|
|
}
|
|
|
|
} |