From ee9cb9d4be76f00b8a8342f87b8e809898ef0c8e Mon Sep 17 00:00:00 2001 From: Foorack Date: Thu, 16 Sep 2021 19:06:02 +0200 Subject: [PATCH] Change door null error to warning - 3.5 --- Keypad.cs | 11 +++++++++-- README.md | 4 ++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Keypad.cs b/Keypad.cs index de140bc..270b519 100644 --- a/Keypad.cs +++ b/Keypad.cs @@ -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; @@ -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) @@ -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; } diff --git a/README.md b/README.md index 57cf250..e4fc2c2 100644 --- a/README.md +++ b/README.md @@ -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:** @@ -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**