1
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user