浏览代码

Add C# variant tab to Pausing games example (#5011)

Co-authored-by: Hugo Locurcio <[email protected]>
hpnrep6 4 年之前
父节点
当前提交
b2579e9cef
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      tutorials/misc/pausing_games.rst

+ 8 - 1
tutorials/misc/pausing_games.rst

@@ -59,7 +59,14 @@ You can achieve the same result in code:
     func _ready():
         pause_mode = Node.PAUSE_MODE_PROCESS
 
-By default all nodes have this property in the "Inherit" state. This
+ .. code-tab:: csharp
+
+    public override void _Ready()
+    {
+        PauseMode = Node.PauseModeEnum.Process;
+    }
+
+By default, all nodes have this property in the "Inherit" state. This
 means, that they will only process (or not) depending on what this same
 property is set on the parent node. If the parent is set to "Inherit" ,
 then the grandparent will be checked and so on. Ultimately, if a state