door (20)

This commit is contained in:
2024-10-20 14:52:24 +02:00
parent 704f2dfd2c
commit eb93c527d3
54 changed files with 2605 additions and 174 deletions

17
script/Car.cs Normal file
View File

@@ -0,0 +1,17 @@
using Godot;
using System;
public partial class Car : CharacterBody2D
{
[Export] PackedScene player;
public override void _PhysicsProcess(double delta)
{
}
public void BodyEntered(Node2D body)
{
if (body.IsInGroup("player"))
{
body.Call("OverVoiture");
}
}
}