Skip to content

Commit

Permalink
Improved Chat example
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGadget1024 committed May 13, 2022
1 parent 876adb8 commit 6ac03a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Assets/Mirror/Examples/Chat/Scenes/Main.unity
Original file line number Diff line number Diff line change
Expand Up @@ -3091,7 +3091,7 @@ MonoBehaviour:
m_Calls:
- m_Target: {fileID: 719572998}
m_TargetAssemblyTypeName: Mirror.Examples.Chat.ChatUI, Mirror.Examples
m_MethodName: ExitButtonClick
m_MethodName: ExitButtonOnClick
m_Mode: 1
m_Arguments:
m_ObjectArgument: {fileID: 0}
Expand Down
3 changes: 2 additions & 1 deletion Assets/Mirror/Examples/Chat/Scripts/ChatUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ IEnumerator AppendAndScroll(string message)
scrollbar.value = 0;
}

public void ExitButtonClick()
// Called by UI element ExitButton.OnClick
public void ExitButtonOnClick()
{
// StopHost calls both StopClient and StopServer
// StopServer does nothing on remote clients
Expand Down

0 comments on commit 6ac03a0

Please sign in to comment.