This commit is contained in:
CortexCore
2024-03-18 21:47:41 +08:00
parent 8acd61ea57
commit 0da2773ea6
19 changed files with 403 additions and 121 deletions

View File

@@ -1,3 +1,4 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
@@ -18,7 +19,10 @@ namespace BITFALL.Entities.Cosmetic
public override void OnAwake()
{
if (_cosmeticService is not null)
{
_cosmeticService.OnCosmeticsChanged += OnCosmeticsChanged;
destroyCancellationToken.Register(() => _cosmeticService.OnCosmeticsChanged -= OnCosmeticsChanged);
}
}
private void OnCosmeticsChanged()