diff --git a/README.md b/README.md index 9082554..3c40f55 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ Message: The content that will be displayed on player's screen. 3. Showing hints by using PlayerUI PlayerUI is an easier way to show hints to a player. It contains common hints, UI, and player effects (not finished). Common hints represent the hints that are commonly used in the plugins. This includes map hints, role hints, item hints, and other hints. This is an example of how to show a common hint to a player. ```csharp -var playerUI = playerUI.Get(player); +var playerUI = PlayerUI.Get(player); playerUI.ShowOtherHint("HelloWorld!"); playerUI.ShowMapHint("RoomA", "This is room A"); playerUI.ShowRoleHint("CustomRole", description.split("\n")); diff --git a/README_zh.md b/README_zh.md index 137d2a4..205f20e 100644 --- a/README_zh.md +++ b/README_zh.md @@ -32,7 +32,7 @@ HintAlignment: 代表了Hint的水平座标,可以将其放在左侧,右侧 Message: Hint显示的内容 3. 通过PlayerUI展示Hint ```csharp -var playerUI = playerUI.Get(player); +var playerUI = PlayerUI.Get(player); playerUI.ShowOtherHint("HelloWorld!"); playerUI.ShowMapHint("RoomA", "This is room A"); playerUI.ShowRoleHint("CustomRole", description.split("\n"));