コード例 #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;
     }
 }
コード例 #2
0
 public virtual void OnWallCollision(PacmanCollider collider)
 {
 }
コード例 #3
0
 public virtual void OnWallCollision(PacmanCollider collider)
 {
 }