Skip to content

Commit

Permalink
Change door null error to warning - 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Foorack committed Sep 16, 2021
1 parent c97aad9 commit ee9cb9d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions Keypad.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class Keypad : UdonSharpBehaviour
{

private readonly string AUTHOR = "Foorack";
private readonly string VERSION = "3.4";
private readonly string VERSION = "3.5";

public string solution = "2580";
public GameObject doorObject = null;
Expand Down Expand Up @@ -62,6 +62,13 @@ private void Log(string value)
Debug.Log(_prefix + value);
}
}
private void LogWarning(string value)
{
if (disableDebugging != true)
{
Debug.LogWarning(_prefix + value);
}
}
private void LogError(string value)
{
if (disableDebugging != true)
Expand Down Expand Up @@ -102,7 +109,7 @@ public void Start()

if (doorObject == null)
{
LogError("Door object was null! Resetting to default value!");
LogWarning("Door object was null! Resetting to default value!");
doorObject = gameObject;
}

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[![Discord](https://img.shields.io/badge/Discord-Foo's%20Udon%20Laboratory-blueviolet?logo=discord)](https://discord.gg/7xJdWNk) - Feel free to join if you have any bugs or questions!

This is a drag-and-drop Keypad/Passcode Prefab for VRChat worlds made in Unity 2018.4.20 and **SDK3** with Udon. This prefab requires no coding from your part and is very easy to setup. Password and target door are both easily configurable, with optional support for custom activation scripts if wanting more advanced activations.
This is a drag-and-drop Keypad/Passcode Prefab for VRChat worlds made in Unity **2019.4.29f** and **SDK3** with Udon. This prefab requires no coding from your part and is very easy to setup. Password and target door are both easily configurable, with optional support for custom activation scripts if wanting more advanced activations.

## **📥 Download:**

Expand All @@ -14,7 +14,7 @@ After installing UdonSharp and Keypad: drag the Keypad prefab into your world, c

[Download UdonSharp API](https://github.com/MerlinVR/UdonSharp/releases/), install and forget.

[Download UdonKeypad v.2021.07.14.21.35](https://storage.foorack.com/download.php?id=20&token=7MDkMNRcn5bapiKabuU90lDOK9SVDrYB) (Latest!)
[Download UdonKeypad v.2021.09.16.18.43](https://storage.foorack.com/download.php?id=21&token=ZinqfqvOjuhEqEuTwJU3LCHHf4bRqB3g) (Latest!)

## **✨ Setup Tutorial**

Expand Down

0 comments on commit ee9cb9d

Please sign in to comment.