Skip to content

Commit

Permalink
Easy Locks Typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ChildoftheBeast authored Mar 2, 2021
1 parent 8938a8d commit 635aebb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Tools/EasyLocks/EasyLocks_Password.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class EasyLocks_Password : UdonSharpBehaviour
[Space]

[Tooltip("This is the target InputFeild to use for the password check.")]
public InputField PasscodeFeild;
public InputField PasscodeField;

[HideInInspector]
[UdonSynced]public bool _isSyncUnlocked = false;
Expand All @@ -60,6 +60,7 @@ public class EasyLocks_Password : UdonSharpBehaviour

public void Start()
{
_localplayer = Networking.LocalPlayer.displayName;
if (Networking.IsMaster && isMasterOnly)
{
_isSyncUnlocked = LockTargetsDefaultOff[1].activeSelf;
Expand Down Expand Up @@ -126,8 +127,8 @@ private void Setlock()
}
public void GlobalToggleLock()
{
if (PasscodeFeild == null) return;
if (Code == PasscodeFeild.text)
if (PasscodeField == null) return;
if (Code == PasscodeField.text)
{
_isSyncUnlocked = !_isSyncUnlocked;
}
Expand Down

1 comment on commit 635aebb

@ChildoftheBeast
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix a typo bug with how the Username is checked

Please sign in to comment.