From 7d2bb329dfc4d6237fe4a873559b2d2787d2f26f Mon Sep 17 00:00:00 2001 From: minenice55 Date: Sun, 14 Jan 2024 19:31:06 -0500 Subject: [PATCH] remove a bunch of prints --- Assets/Scripts/Common/MemRenderer.cs | 1 - Assets/Scripts/GameManager.cs | 1 - Assets/Scripts/Games/CropStomp/CropStomp.cs | 1 - Assets/Scripts/Games/CropStomp/Veggie.cs | 2 -- Assets/Scripts/Games/FirstContact/FirstContact.cs | 2 -- Assets/Scripts/Games/KarateMan/KarateManJoe.cs | 1 - Assets/Scripts/Games/KarateMan/KarateManPot.cs | 1 - Assets/Scripts/Games/MeatGrinder/MeatGrinder.cs | 2 +- Assets/Scripts/Games/Minigame.cs | 4 ++-- Assets/Scripts/Games/Rockers/RockersRocker.cs | 2 +- Assets/Scripts/Games/SamuraiSliceNtr/NtrSamuraiObject.cs | 1 - Assets/Scripts/Games/SeeSaw/SeeSaw.cs | 1 - Assets/Scripts/Games/SpaceSoccer/SpaceSoccer.cs | 2 -- Assets/Scripts/Games/WorkingDough/WorkingDough.cs | 1 - Assets/Scripts/LevelEditor/Timeline/Timeline.cs | 1 - Assets/Scripts/LevelEditor/Timeline/TimelineZoom.cs | 6 +++++- .../Scripts/UI/SettingsDialog/Tabs/CreditsLegalSettings.cs | 2 -- Assets/Scripts/Util/BeatAction.cs | 4 ++-- 18 files changed, 11 insertions(+), 24 deletions(-) diff --git a/Assets/Scripts/Common/MemRenderer.cs b/Assets/Scripts/Common/MemRenderer.cs index 27ef868db..b56b6cda0 100644 --- a/Assets/Scripts/Common/MemRenderer.cs +++ b/Assets/Scripts/Common/MemRenderer.cs @@ -17,7 +17,6 @@ public class MemRenderer : MonoBehaviour public void ChangeMem() { - Debug.Log("ChangeMem"); Destroy(_instance); _instance = Instantiate(prefabs[UnityEngine.Random.Range(0, prefabs.Length)], transform); } diff --git a/Assets/Scripts/GameManager.cs b/Assets/Scripts/GameManager.cs index 585593832..d301a3fc6 100644 --- a/Assets/Scripts/GameManager.cs +++ b/Assets/Scripts/GameManager.cs @@ -464,7 +464,6 @@ namespace HeavenStudio double seekTime = eventCaller.GetGameAction(entityDatamodel[0], entityDatamodel[1]).preFunctionLength; if (entity.beat - seekTime == preSequenceBeats[currentPreSequence]) { - Debug.Log($"Calling pre-event for {entity.datamodel} at beat {entity.beat - seekTime} (prefunction length {seekTime})"); entitiesInRange.Add(entity); } } diff --git a/Assets/Scripts/Games/CropStomp/CropStomp.cs b/Assets/Scripts/Games/CropStomp/CropStomp.cs index 7264ff1b1..d17afb838 100644 --- a/Assets/Scripts/Games/CropStomp/CropStomp.cs +++ b/Assets/Scripts/Games/CropStomp/CropStomp.cs @@ -159,7 +159,6 @@ namespace HeavenStudio.Games if (stepsPassed > 1000) { - Debug.Log("Loop broke!"); return; } } diff --git a/Assets/Scripts/Games/CropStomp/Veggie.cs b/Assets/Scripts/Games/CropStomp/Veggie.cs index 695589813..ee3b2d954 100644 --- a/Assets/Scripts/Games/CropStomp/Veggie.cs +++ b/Assets/Scripts/Games/CropStomp/Veggie.cs @@ -214,8 +214,6 @@ namespace HeavenStudio.Games.Scripts_CropStomp } gotStomped = true; - Debug.Log("Stomped!"); - var cond = Conductor.instance; ParticleSystem spawnedHit = Instantiate(game.hitParticle, game.hitParticle.transform.parent); diff --git a/Assets/Scripts/Games/FirstContact/FirstContact.cs b/Assets/Scripts/Games/FirstContact/FirstContact.cs index fe551daaf..1dd7d3208 100644 --- a/Assets/Scripts/Games/FirstContact/FirstContact.cs +++ b/Assets/Scripts/Games/FirstContact/FirstContact.cs @@ -345,8 +345,6 @@ namespace HeavenStudio.Games public void LookAtDirection(int alienLookAt, int translatorLookAt) { - Debug.Log(alienLookAt); - Debug.Log(translatorLookAt); switch (alienLookAt) { case 0: diff --git a/Assets/Scripts/Games/KarateMan/KarateManJoe.cs b/Assets/Scripts/Games/KarateMan/KarateManJoe.cs index f7c7fa8d6..9e7ca711f 100644 --- a/Assets/Scripts/Games/KarateMan/KarateManJoe.cs +++ b/Assets/Scripts/Games/KarateMan/KarateManJoe.cs @@ -153,7 +153,6 @@ namespace HeavenStudio.Games.Scripts_KarateMan { if (PlayerInput.CurrentControlStyle == InputController.ControlStyles.Touch) { - Debug.Log("Touch charge"); inTouchCharge = true; anim.DoScaledAnimationAsync("ManChargeOut", 0.5f); } diff --git a/Assets/Scripts/Games/KarateMan/KarateManPot.cs b/Assets/Scripts/Games/KarateMan/KarateManPot.cs index f79ddf7a5..cf33afc9a 100644 --- a/Assets/Scripts/Games/KarateMan/KarateManPot.cs +++ b/Assets/Scripts/Games/KarateMan/KarateManPot.cs @@ -1097,7 +1097,6 @@ namespace HeavenStudio.Games.Scripts_KarateMan public bool CanKick() { var joe = KarateMan.instance.Joe; - Debug.Log(joe.inKick); return status == FlyStatus.Fly && joe.inKick; } diff --git a/Assets/Scripts/Games/MeatGrinder/MeatGrinder.cs b/Assets/Scripts/Games/MeatGrinder/MeatGrinder.cs index 3dc56aae4..98019adea 100644 --- a/Assets/Scripts/Games/MeatGrinder/MeatGrinder.cs +++ b/Assets/Scripts/Games/MeatGrinder/MeatGrinder.cs @@ -298,7 +298,7 @@ namespace HeavenStudio.Games } if (CartGuyParentAnim.gameObject.activeSelf) { - Debug.Log(cartPhone ? "PhoneBop" : "Bop"); + // Debug.Log(cartPhone ? "PhoneBop" : "Bop"); if (cartPhone) { CartGuyAnim.DoScaledAnimationAsync("PhoneBop", 0.5f); } else { diff --git a/Assets/Scripts/Games/Minigame.cs b/Assets/Scripts/Games/Minigame.cs index 51c573b42..957eba458 100644 --- a/Assets/Scripts/Games/Minigame.cs +++ b/Assets/Scripts/Games/Minigame.cs @@ -377,7 +377,7 @@ namespace HeavenStudio.Games { if (pair.name == name) { - Debug.Log($"Playing sound sequence {pair.name} at beat {startBeat}"); + // Debug.Log($"Playing sound sequence {pair.name} at beat {startBeat}"); return pair.sequence.Play(startBeat); } } @@ -446,7 +446,7 @@ namespace HeavenStudio.Games { if (bopRegion.ContainsKey(e.beat)) { - Debug.Log("Two bops on the same beat, ignoring this one"); + // Debug.Log("Two bops on the same beat, ignoring this one"); continue; } if (isBool) diff --git a/Assets/Scripts/Games/Rockers/RockersRocker.cs b/Assets/Scripts/Games/Rockers/RockersRocker.cs index 0a72c1c18..7afdd95e7 100644 --- a/Assets/Scripts/Games/Rockers/RockersRocker.cs +++ b/Assets/Scripts/Games/Rockers/RockersRocker.cs @@ -126,7 +126,7 @@ namespace HeavenStudio.Games.Scripts_Rockers float pitch = SoundByte.GetPitchFromSemiTones(pitches[i], true); float volume = GetVolumeBasedOnAmountOfStrings(pitches.Length); string soundName = "rockers/strings/" + (gleeClub ? "gleeClub/" : "normal/" + (i + 1)); - Debug.Log("Pitch: " + pitch + " Volume: " + volume + " Name: " + soundName); + // Debug.Log("Pitch: " + pitch + " Volume: " + volume + " Name: " + soundName); stringSounds[i] = SoundByte.PlayOneShotGame(soundName, -1, pitch, volume, true); } } diff --git a/Assets/Scripts/Games/SamuraiSliceNtr/NtrSamuraiObject.cs b/Assets/Scripts/Games/SamuraiSliceNtr/NtrSamuraiObject.cs index 71acba980..c67f790f4 100644 --- a/Assets/Scripts/Games/SamuraiSliceNtr/NtrSamuraiObject.cs +++ b/Assets/Scripts/Games/SamuraiSliceNtr/NtrSamuraiObject.cs @@ -177,7 +177,6 @@ namespace HeavenStudio.Games.Scripts_NtrSamurai default: // object initial spawn, flying towards board flyPos = cond.GetPositionFromBeat(launchProg.startBeat, 3f); - Debug.Log(flyPos); transform.position = currentCurve.GetPoint(Mathf.Clamp01(flyPos)); if (flyPos >= 1) transform.rotation = Quaternion.identity; diff --git a/Assets/Scripts/Games/SeeSaw/SeeSaw.cs b/Assets/Scripts/Games/SeeSaw/SeeSaw.cs index 20f5d6f98..2088e67a4 100644 --- a/Assets/Scripts/Games/SeeSaw/SeeSaw.cs +++ b/Assets/Scripts/Games/SeeSaw/SeeSaw.cs @@ -285,7 +285,6 @@ namespace HeavenStudio.Games private void GrabJumpEvents(double beat) { - Debug.Log("Beat: " + beat); var jumpEvents = EventCaller.GetAllInGameManagerList("seeSaw", new string[] { "longLong", "longShort", "shortLong", "shortShort" }); List tempEvents = new List(); for (int i = 0; i < jumpEvents.Count; i++) diff --git a/Assets/Scripts/Games/SpaceSoccer/SpaceSoccer.cs b/Assets/Scripts/Games/SpaceSoccer/SpaceSoccer.cs index d73e66b78..136096928 100644 --- a/Assets/Scripts/Games/SpaceSoccer/SpaceSoccer.cs +++ b/Assets/Scripts/Games/SpaceSoccer/SpaceSoccer.cs @@ -302,14 +302,12 @@ namespace HeavenStudio.Games { if (hitBeats.Exists(x => x == offsetBeat - 0.5)) return; ScoreMiss(); - Debug.Log("Miss toe"); } } else if (!IsExpectingInputNow(InputAction_BasicPress)) { if (hitBeats.Exists(x => offsetBeat == x)) return; ScoreMiss(); - Debug.Log("Miss"); } } diff --git a/Assets/Scripts/Games/WorkingDough/WorkingDough.cs b/Assets/Scripts/Games/WorkingDough/WorkingDough.cs index aa3641422..79478510c 100644 --- a/Assets/Scripts/Games/WorkingDough/WorkingDough.cs +++ b/Assets/Scripts/Games/WorkingDough/WorkingDough.cs @@ -298,7 +298,6 @@ namespace HeavenStudio.Games } if (isBig) hasBigBall = true; } - Debug.Log(autoPassTurn); if (autoPassTurn) { PassTurn(beat + interval, interval, beat); diff --git a/Assets/Scripts/LevelEditor/Timeline/Timeline.cs b/Assets/Scripts/LevelEditor/Timeline/Timeline.cs index 81f08f9e3..602e1f825 100644 --- a/Assets/Scripts/LevelEditor/Timeline/Timeline.cs +++ b/Assets/Scripts/LevelEditor/Timeline/Timeline.cs @@ -338,7 +338,6 @@ namespace HeavenStudio.Editor.Track public void CreateWaveform() { - Debug.Log("what"); // DrawWaveform(); // StartCoroutine(DrawWaveformRealtime()); } diff --git a/Assets/Scripts/LevelEditor/Timeline/TimelineZoom.cs b/Assets/Scripts/LevelEditor/Timeline/TimelineZoom.cs index e4127b014..fb5b8e378 100644 --- a/Assets/Scripts/LevelEditor/Timeline/TimelineZoom.cs +++ b/Assets/Scripts/LevelEditor/Timeline/TimelineZoom.cs @@ -44,7 +44,11 @@ namespace HeavenStudio.Editor.Track Vector2 relativeMousePosition; var cam = Editor.instance.EditorCamera; - if (cam == null) Debug.LogError("Camera not set!"); + if (cam == null) + { + Debug.LogError("Camera not set!"); + return; + } RectTransformUtility.ScreenPointToLocalPointInRectangle(rectTransform, Input.mousePosition, cam, out relativeMousePosition); if (scrollDeltaY > 0) diff --git a/Assets/Scripts/UI/SettingsDialog/Tabs/CreditsLegalSettings.cs b/Assets/Scripts/UI/SettingsDialog/Tabs/CreditsLegalSettings.cs index f055ae066..48792314f 100644 --- a/Assets/Scripts/UI/SettingsDialog/Tabs/CreditsLegalSettings.cs +++ b/Assets/Scripts/UI/SettingsDialog/Tabs/CreditsLegalSettings.cs @@ -27,7 +27,6 @@ namespace HeavenStudio.Editor public void OnClickCountUp() { SecretCounter++; - Debug.Log("SecretCounter: " + SecretCounter); if (SecretCounter == 10 && Editor.instance != null) { secretObject.SetActive(true); @@ -40,7 +39,6 @@ namespace HeavenStudio.Editor SecretActive = true; SoundByte.PlayOneShot("applause"); - Debug.Log("Activating Studio Dance..."); if (Editor.instance == null) { diff --git a/Assets/Scripts/Util/BeatAction.cs b/Assets/Scripts/Util/BeatAction.cs index cf367b81f..dac204d94 100644 --- a/Assets/Scripts/Util/BeatAction.cs +++ b/Assets/Scripts/Util/BeatAction.cs @@ -26,8 +26,8 @@ namespace HeavenStudio.Util { if (behaviour == null) { - Debug.LogWarning("Starting a BeatAction with no assigned behaviour. The Conductor will be used instead."); - behaviour = Conductor.instance; + Debug.LogWarning("Starting a BeatAction with no assigned behaviour. The Game Manager will be used instead."); + behaviour = GameManager.instance; } CancellationTokenSource cancelToken = new CancellationTokenSource(); RunAsync(behaviour, actions, cancelToken.Token).Forget();