SupaLidlGame/BoundingBoxes/CameraBounds.cs

22 lines
404 B
C#
Raw Permalink Normal View History

2023-07-22 20:23:48 -07:00
using Godot;
namespace SupaLidlGame.BoundingBoxes;
public partial class CameraBounds : Area2D
{
public override void _Ready()
{
BodyEntered += OnBodyEntered;
base._Ready();
}
private void OnBodyEntered(Node2D body)
{
if (body is Characters.Player player)
{
var camera = player.Camera;
//camera.LimitLeft =
}
}
}