Skip to content

Commit ff89b46

Browse files
committed
Fix C# _Process method signatures
1 parent 5dea521 commit ff89b46

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tutorials/2d/2d_sprite_animation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ released.
104104
_animatedSprite = GetNode<AnimatedSprite2D>("AnimatedSprite2D");
105105
}
106106

107-
public override _Process(float _delta)
107+
public override void _Process(double delta)
108108
{
109109
if (Input.IsActionPressed("ui_right"))
110110
{
@@ -252,7 +252,7 @@ released.
252252
_animationPlayer = GetNode<AnimationPlayer>("AnimationPlayer");
253253
}
254254

255-
public override void _Process(float _delta)
255+
public override void _Process(double delta)
256256
{
257257
if (Input.IsActionPressed("ui_right"))
258258
{

tutorials/audio/sync_with_audio.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Add these two and it's possible to guess almost exactly when sound or music will
7272
GetNode<AudioStreamPlayer>("Player").Play();
7373
}
7474

75-
public override void _Process(float _delta)
75+
public override void _Process(double delta)
7676
{
7777
double time = (Time.GetTicksUsec() - _timeBegin) / 1000000.0d;
7878
time = Math.Max(0.0d, time - _timeDelay);
@@ -140,7 +140,7 @@ Here is the same code as before using this approach:
140140
GetNode<AudioStreamPlayer>("Player").Play();
141141
}
142142

143-
public override void _Process(float _delta)
143+
public override void _Process(double delta)
144144
{
145145
double time = GetNode<AudioStreamPlayer>("Player").GetPlaybackPosition() + AudioServer.GetTimeSinceLastMix();
146146
// Compensate for output latency.

0 commit comments

Comments
 (0)