From 92af05025c40f6ca22538eb6593a35df2c91cbc8 Mon Sep 17 00:00:00 2001 From: Dale Eidd Date: Fri, 10 Nov 2023 11:46:56 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20Underwater=20Effect=20not?= =?UTF-8?q?=20working?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crest/Assets/Crest/Crest/Scripts/Helpers/UnderwaterEffect.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crest/Assets/Crest/Crest/Scripts/Helpers/UnderwaterEffect.cs b/crest/Assets/Crest/Crest/Scripts/Helpers/UnderwaterEffect.cs index 443c83172..5b751abee 100644 --- a/crest/Assets/Crest/Crest/Scripts/Helpers/UnderwaterEffect.cs +++ b/crest/Assets/Crest/Crest/Scripts/Helpers/UnderwaterEffect.cs @@ -63,7 +63,7 @@ public partial class UnderwaterEffect : CustomMonoBehaviour private void Start() { - if (!TryGetComponent(out var _rend)) + if (!TryGetComponent(out _rend)) { Debug.LogError($"Crest: No renderer attached to {this}. Please attach on or use the prefab."); return;