refactor: Update Unity to 2022.3.62
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user