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