/// использование триггеров в состояниях void OnTriggerEnter2D(Collider2D other) { currentState.OnTriggerEnter(other); }
public override void OnTriggerEnter2D(Collider2D other) { base.OnTriggerEnter2D(other); currentState.OnTriggerEnter(other); }