Skip to content

Commit

Permalink
Fix Keyboard Manager.
Browse files Browse the repository at this point in the history
  • Loading branch information
FairlySadPanda committed Jun 22, 2020
1 parent 50f81d1 commit 7d2f126
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions UdonKeyboard/KeyboardManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class KeyboardManager : UdonSharpBehaviour

public void Start()
{
SetActive(false);
gameObject.SetActive(false);
}

public void Update()
Expand All @@ -52,7 +52,7 @@ public void Update()
transform.position = pos;

// If the keyboard is active, the log screen should sit above the keyboard.
if (activeSelf)
if (gameObject.activeSelf)
{
logScreen.transform.position = keyboardAnchor.transform.position;
logScreen.transform.rotation = keyboardAnchor.transform.rotation;
Expand Down Expand Up @@ -128,9 +128,9 @@ public void Toggle()
logScreen.Toggle();
}

SetActive(!activeSelf);
gameObject.SetActive(!gameObject.activeSelf);

if (activeSelf)
if (gameObject.activeSelf)
{
if (Networking.LocalPlayer != null)
{
Expand Down

0 comments on commit 7d2f126

Please sign in to comment.