1
This commit is contained in:
@@ -21,9 +21,15 @@ namespace BITKit.Entities.Animation
|
||||
{
|
||||
base.OnAwake();
|
||||
_entityEquipment.OnEquipAddressable += OnEquip;
|
||||
_entityEquipment.OnUnEquipAddressable += UnEquip;
|
||||
_initialRuntimeAnimatorController = unityAnimator.animator.runtimeAnimatorController;
|
||||
}
|
||||
|
||||
private void UnEquip(string obj)
|
||||
{
|
||||
_runtimeAnimatorControllerBuffer.Release(_initialRuntimeAnimatorController);
|
||||
}
|
||||
|
||||
public override void OnLateUpdate(float deltaTime)
|
||||
{
|
||||
if(_runtimeAnimatorControllerBuffer.TryGetRelease(out var controller))
|
||||
|
Reference in New Issue
Block a user