using System.Collections.Generic; using Framework; using Gameplay.Level; using Framework.Condition; /// /// 关卡星级是否满足 /// public class ConditionLevelStar : ICondition { public EventManager.EventName SignalName => EventManager.EventName.LevelInfoChanged; public bool Check(List args) { var id = (int)args[0]; var star = (int)args[1]; var levelInfo = LevelManager.Instance.GetLevelInfoByID(id); return levelInfo != null && levelInfo.StarCount >= star; } }