mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
4.0: Convert Sprite references to Sprite2D
Some screenshots will need to be updated so that the scene structures shown in screenshot fit what the code blocks are referring to.
This commit is contained in:
@@ -88,7 +88,7 @@ Here is the code for the player using signals to emit the bullet:
|
||||
.. tabs::
|
||||
.. code-tab:: gdscript GDScript
|
||||
|
||||
extends Sprite
|
||||
extends Sprite2D
|
||||
|
||||
signal shoot(bullet, direction, location)
|
||||
|
||||
@@ -104,7 +104,7 @@ Here is the code for the player using signals to emit the bullet:
|
||||
|
||||
.. code-tab:: csharp
|
||||
|
||||
public class Player : Sprite
|
||||
public class Player : Sprite2D
|
||||
{
|
||||
[Signal]
|
||||
delegate void Shoot(PackedScene bullet, Vector2 direction, Vector2 location);
|
||||
|
||||
Reference in New Issue
Block a user