From b2579e9cef1f422659aaa64d11568a5cb7900a13 Mon Sep 17 00:00:00 2001 From: hpnrep6 <57055412+hpnrep6@users.noreply.github.com> Date: Thu, 17 Jun 2021 21:58:28 -0400 Subject: [PATCH] Add C# variant tab to Pausing games example (#5011) Co-authored-by: Hugo Locurcio --- tutorials/misc/pausing_games.rst | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tutorials/misc/pausing_games.rst b/tutorials/misc/pausing_games.rst index 1d9f0ffc3..b32e7b9f6 100644 --- a/tutorials/misc/pausing_games.rst +++ b/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