Trigger/Runtime/Collider/ColliderTrigger.cs

23 lines
495 B
C#
Raw Normal View History

2023-03-20 22:22:42 +03:00
using Syntriax.Modules.State;
namespace Syntriax.Modules.Trigger
{
public class ColliderTrigger : TriggerBase
{
protected IColliderTriggerArea colliderTrigger = null;
private void Awake()
{
colliderTrigger = GetComponent<IColliderTriggerArea>();
}
private void FixedUpdate()
{
2023-03-20 22:22:42 +03:00
if (!StateEnable.IsEnabledNullChecked())
return;
IsTrigerred = colliderTrigger.Check();
}
}
}