소스 검색

Merge pull request #5017 from hpnrep6/rename-function

Rename generic C# function name to GDScript example equivalent
Max Hilbrunner 4 년 전
부모
커밋
eb18bf93ba
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      tutorials/best_practices/godot_interfaces.rst

+ 3 - 3
tutorials/best_practices/godot_interfaces.rst

@@ -183,8 +183,8 @@ Nodes likewise have an alternative access point: the SceneTree.
 
     public class MyNode
     {
-        // Slow, dynamic lookup with dynamic NodePath.
-        public void Method1()
+        // Slow
+        public void DynamicLookupWithDynamicNodePath()
         {
             GD.Print(GetNode(NodePath("Child")));
         }
@@ -196,7 +196,7 @@ Nodes likewise have an alternative access point: the SceneTree.
         {
             Child = GetNode(NodePath("Child"));
         }
-        public void Method2()
+        public void LookupAndCacheForFutureAccess()
         {
             GD.Print(Child);
         }