Skip to content

Commit 89e9404

Browse files
committed
docs(manager): Update
1 parent fb1f79a commit 89e9404

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

Assets/JCSUnity/Scripts/Managers/JCS_GameManager.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,9 @@ private void Awake()
7070
}
7171

7272
/// <summary>
73-
/// Register event run on the first frame of the game.
73+
/// Register event run on the first frame of the game. (system used)
7474
/// </summary>
75-
public void RegisterOnAfterInit(Action action)
75+
public void RegisterOnSystemAfterInit(Action action)
7676
{
7777
// Already initialize, just execute it.
7878
if (mDoneInitialize)
@@ -81,13 +81,13 @@ public void RegisterOnAfterInit(Action action)
8181
return;
8282
}
8383

84-
mOnAfterInitialize += action;
84+
mOnSystemAfterInitialize += action;
8585
}
8686

8787
/// <summary>
8888
/// Register event run on the first frame of the game.
8989
/// </summary>
90-
public void RegisterOnSystemAfterInit(Action action)
90+
public void RegisterOnAfterInit(Action action)
9191
{
9292
// Already initialize, just execute it.
9393
if (mDoneInitialize)
@@ -96,7 +96,7 @@ public void RegisterOnSystemAfterInit(Action action)
9696
return;
9797
}
9898

99-
mOnSystemAfterInitialize += action;
99+
mOnAfterInitialize += action;
100100
}
101101

102102
/// <summary>

docs/ScriptReference/Managers/JCS_GameManager.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ Manager that manage the game behaviour.
44

55
## Variables
66

7-
| Name | Description |
8-
|:------------------------|:----------------------------------------------------------|
9-
| onSystemAfterInitialize | Callback after the game is done initialize. (system used) |
10-
| onAfterInitialize | Callback after the game is done initialize. |
11-
| TIME_SCALE | Adjustable current time scale. |
12-
| GAME_PAUSE | Is the game pause? |
13-
| DONE_INITIALIZE | Is game done initialize? |
7+
| Name | Description |
8+
|:--------------------------|:-----------------------------------------------------------------|
9+
| RegisterOnAfterInit | Register event run on the first frame of the game. |
10+
| RegisterOnSystemAfterInit | Register event run on the first frame of the game. (system used) |
11+
| TIME_SCALE | Adjustable current time scale. |
12+
| GAME_PAUSE | Is the game pause? |
13+
| DONE_INITIALIZE | Is game done initialize? |

0 commit comments

Comments
 (0)