2
0
Эх сурвалжийг харах

Fix incorrect C# example using `_GetConfigurationWarnings`

kleonc 1 жил өмнө
parent
commit
00a296a7f0

+ 5 - 3
tutorials/best_practices/godot_interfaces.rst

@@ -108,11 +108,13 @@ access.
         };
 
         // Warn users if the value hasn't been set.
-        public String _GetConfigurationWarnings()
+        public string[] _GetConfigurationWarnings()
         {
             if (EnemyScn == null)
-                return "Must initialize property 'EnemyScn'.";
-            return "";
+            {
+                return new string[] { "Must initialize property 'EnemyScn'." };
+            }
+            return Array.Empty<string>();
         }
     }