Просмотр исходного кода

CSharp example missing return type

Tristan A. 11 месяцев назад
Родитель
Сommit
a2d29557ed
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      tutorials/scripting/c_sharp/c_sharp_basics.rst

+ 1 - 1
tutorials/scripting/c_sharp/c_sharp_basics.rst

@@ -328,7 +328,7 @@ objects, e.g. when trying to change the X coordinate of a ``Node2D``:
 
 
     public partial class MyNode2D : Node2D
     public partial class MyNode2D : Node2D
     {
     {
-        public override _Ready()
+        public override void _Ready()
         {
         {
             Position.X = 100.0f;
             Position.X = 100.0f;
             // CS1612: Cannot modify the return value of 'Node2D.Position' because
             // CS1612: Cannot modify the return value of 'Node2D.Position' because