23 lines
499 B
C#
23 lines
499 B
C#
using Syntriax.Modules.ToggleState;
|
|
|
|
namespace Syntriax.Modules.Trigger
|
|
{
|
|
public class ColliderTrigger : TriggerBase
|
|
{
|
|
protected IColliderTrigger colliderTrigger = null;
|
|
|
|
private void Awake()
|
|
{
|
|
colliderTrigger = GetComponent<IColliderTrigger>();
|
|
}
|
|
|
|
private void FixedUpdate()
|
|
{
|
|
if (!ToggleStateMember.IsToggledNullChecked())
|
|
return;
|
|
|
|
IsTrigerred = colliderTrigger.Check();
|
|
}
|
|
}
|
|
}
|