refactor: Update Unity to 2022.3.62

This commit is contained in:
2025-06-21 01:22:02 +08:00
parent d71bf7d4a5
commit 283783954f
112 changed files with 778 additions and 907 deletions

View File

@@ -6,7 +6,7 @@ using UnityEngine;
namespace Cryville.Crtr.Skin {
public class EffectManager {
readonly IntKeyedDictionary<EffectGroup> _groups
= new IntKeyedDictionary<EffectGroup>();
= new();
public EffectManager(PdtSkin skin) {
foreach (var e in skin.effects) {
_groups.Add(e.Key.Key, new EffectGroup(e.Value));
@@ -22,8 +22,7 @@ namespace Cryville.Crtr.Skin {
GetGroup(id).Emit(index, target);
}
EffectGroup GetGroup(int id) {
EffectGroup result;
if (_groups.TryGetValue(id, out result)) return result;
if (_groups.TryGetValue(id, out EffectGroup result)) return result;
throw new ArgumentException(string.Format("The effect \"{0}\" is not found", IdentifierManager.Shared.Retrieve(id)));
}
public void Dispose() {