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