Skip to content

Commit

Permalink
UIMain big hell bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GameEgg committed Jan 19, 2017
1 parent bc491f4 commit 4537574
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Assets/Scripts/MainUI/UIMain.cs
Expand Up @@ -78,18 +78,18 @@ void Start ()
NetworkManager.instance.StopAll();
}

private void OnGUI()
void Update()
{
if (currentLayout == renameLayout && inputFieldNickname.text != string.Empty)
{
if (Event.current.keyCode == KeyCode.Return)
if (Input.GetKeyDown(KeyCode.Return))
{
ClickRenameApplyBtn();
}
}
else if (currentLayout == joinLayout)
{
if (Event.current.keyCode == KeyCode.Return)
if (Input.GetKeyDown(KeyCode.Return))
{
ClickJoinToAddressBtn();
}
Expand Down

0 comments on commit 4537574

Please sign in to comment.