Files
godot-demo-projects/mono/pong/Logic/Wall.cs
Aaron Franke 006309bd6f Many tweaks thanks to IAmActuallyCthulhu
Also change apostrophes to double quotes and update C# projects
2020-06-28 13:19:13 -04:00

14 lines
244 B
C#

using Godot;
public class Wall : Area2D
{
public void OnWallAreaEntered(Area2D area)
{
if (area is Ball ball)
{
// Ball went off the side of the screen, reset it.
ball.Reset();
}
}
}