Forráskód Böngészése

Merge pull request #8375 from kleonc/get_configuration_warnings_csharp_example

Fix incorrect C# example using `_GetConfigurationWarnings`
Max Hilbrunner 1 éve
szülő
commit
8d1f3d8617
1 módosított fájl, 5 hozzáadás és 3 törlés
  1. 5 3
      tutorials/best_practices/godot_interfaces.rst

+ 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>();
         }
     }