Initial Commit
This commit is contained in:
commit
ee5c2f922d
2255 changed files with 547750 additions and 0 deletions
21
Assets/Scripts/Systems/Actor/ActorMeleeIkSystem.cs
Normal file
21
Assets/Scripts/Systems/Actor/ActorMeleeIkSystem.cs
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
using Unity.Entities;
|
||||
|
||||
namespace DefaultNamespace
|
||||
{
|
||||
[UpdateInGroup(typeof(PresentationSystemGroup)), UpdateAfter(typeof(ActorIkSystem))]
|
||||
public class ActorMeleeIkSystem : ComponentSystem
|
||||
{
|
||||
protected override void OnUpdate()
|
||||
{
|
||||
Entities.ForEach(
|
||||
(MeleeIkManager2D manager) =>
|
||||
{
|
||||
manager.enabled = false;
|
||||
if (manager.gameObject.activeInHierarchy)
|
||||
{
|
||||
manager.UpdateManager();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue