mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2025-01-19 15:07:21 +01:00
14 lines
244 B
C#
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();
|
|
}
|
|
}
|
|
}
|