Trigger/Runtime/Collider/ColliderTrigger.cs

23 lines
495 B
C#

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()
{
if (!StateEnable.IsEnabledNullChecked())
return;
IsTrigerred = colliderTrigger.Check();
}
}
}