Update Project
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Zenject
|
||||
{
|
||||
public class AnimatorIkHandlerManager : MonoBehaviour
|
||||
{
|
||||
List<IAnimatorIkHandler> _handlers;
|
||||
|
||||
[Inject]
|
||||
public void Construct(
|
||||
// Use local to avoid inheriting handlers from a parent context
|
||||
[Inject(Source = InjectSources.Local)]
|
||||
List<IAnimatorIkHandler> handlers)
|
||||
{
|
||||
_handlers = handlers;
|
||||
}
|
||||
|
||||
public void OnAnimatorIk()
|
||||
{
|
||||
foreach (var handler in _handlers)
|
||||
{
|
||||
handler.OnAnimatorIk();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user