예제 #1
0
 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)
 {
 }
 public virtual void OnWallCollision(PacmanCollider collider)
 {
 }