mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 18:29:11 +00:00
Add C# instructions for Your first game (#5474)
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
@@ -425,7 +425,8 @@ We want ``Player`` to detect when it's hit by an enemy, but we haven't made any
|
||||
enemies yet! That's OK, because we're going to use Godot's *signal*
|
||||
functionality to make it work.
|
||||
|
||||
Add the following at the top of the script, after ``extends Area2D``:
|
||||
Add the following at the top of the script. If you're using GDScript, add it after
|
||||
``extends Area2D``. If you're using C#, add it after ``public class Player : Area2D {``:
|
||||
|
||||
.. tabs::
|
||||
.. code-tab:: gdscript GDScript
|
||||
|
||||
Reference in New Issue
Block a user