door (20)
This commit is contained in:
17
script/Car.cs
Normal file
17
script/Car.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user