瀏覽代碼

Monkey Pong: fix case of Normalized

This was changed between 3.0-alpha2 and 3.0-beta1.
Rémi Verschelde 7 年之前
父節點
當前提交
296da279ea
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mono/monkey_pong/Paddle.cs

+ 1 - 1
mono/monkey_pong/Paddle.cs

@@ -28,7 +28,7 @@ public class Paddle : Area2D
         if (area is Ball ball)
         {
             // Assign new direction
-            ball.direction = new Vector2(ballDir, (float)new Random().NextDouble() * 2 - 1).normalized();
+            ball.direction = new Vector2(ballDir, (float)new Random().NextDouble() * 2 - 1).Normalized();
         }
     }
 }