From 7cc669efae130e174c98d710d666accffe096302 Mon Sep 17 00:00:00 2001 From: Rapandrasmus <78219215+Rapandrasmus@users.noreply.github.com> Date: Sat, 25 Nov 2023 12:55:19 +0100 Subject: [PATCH] fixed blue bear bug --- Assets/Scripts/Games/BlueBear/BlueBear.cs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Assets/Scripts/Games/BlueBear/BlueBear.cs b/Assets/Scripts/Games/BlueBear/BlueBear.cs index 3d908c539..64f3d4dad 100644 --- a/Assets/Scripts/Games/BlueBear/BlueBear.cs +++ b/Assets/Scripts/Games/BlueBear/BlueBear.cs @@ -221,18 +221,6 @@ namespace HeavenStudio.Games return default(SuperCurveObject.Path); } - void OnDestroy() - { - foreach (var evt in scheduledInputs) - { - evt.Disable(); - } - if (Conductor.instance.isPlaying || Conductor.instance.isPaused) return; - rightCrumbAppearThreshold = 15; - leftCrumbAppearThreshold = 30; - eatenTreats = 0; - } - private void Awake() { instance = this; @@ -357,7 +345,7 @@ namespace HeavenStudio.Games if (_allEmotionsStretch.Count == 0) return; UpdateEmotions(); var allEmosBeforeBeat = EventCaller.GetAllInGameManagerList("blueBear", new string[] { "stretchEmotion" }).FindAll(x => x.beat < beat); - + if (allEmosBeforeBeat.Count == 0) return; if ((EmotionStretchType)allEmosBeforeBeat[^1]["type"] == EmotionStretchType.StartCrying) { headAndBodyAnim.DoScaledAnimationAsync("CryIdle", 0.5f);