public override void OnWallCollision(PacmanCollider collider) { if ((collider == LeftCollider && _state == State.Left) || (collider == RightCollider && _state == State.Right) || (collider == TopCollider && _state == State.Up) || (collider == BottomCollider && _state == State.Down)) { _mustChangeDirection = true; } }
public virtual void OnWallCollision(PacmanCollider collider) { }