fixed c# example in CharacterBody2D doc
This commit is contained in:
parent
853c36ca0b
commit
6951574265
|
@ -71,10 +71,10 @@
|
|||
print("Collided with: ", collision.collider.name)
|
||||
[/gdscript]
|
||||
[csharp]
|
||||
for (int i = 0; i < GetSlideCount(); i++)
|
||||
for (int i = 0; i < GetSlideCollisionCount(); i++)
|
||||
{
|
||||
KinematicCollision2D collision = GetSlideCollision(i);
|
||||
GD.Print("Collided with: ", (collision.Collider as Node).Name);
|
||||
GD.Print("Collided with: ", (collision.GetCollider() as Node).Name);
|
||||
}
|
||||
[/csharp]
|
||||
[/codeblocks]
|
||||
|
|
Loading…
Reference in New Issue