remove a bunch of prints

This commit is contained in:
minenice55 2024-01-14 19:31:06 -05:00
parent f79dc4544f
commit 7d2bb329df
18 changed files with 11 additions and 24 deletions

View file

@ -17,7 +17,6 @@ public class MemRenderer : MonoBehaviour
public void ChangeMem() public void ChangeMem()
{ {
Debug.Log("ChangeMem");
Destroy(_instance); Destroy(_instance);
_instance = Instantiate(prefabs[UnityEngine.Random.Range(0, prefabs.Length)], transform); _instance = Instantiate(prefabs[UnityEngine.Random.Range(0, prefabs.Length)], transform);
} }

View file

@ -464,7 +464,6 @@ namespace HeavenStudio
double seekTime = eventCaller.GetGameAction(entityDatamodel[0], entityDatamodel[1]).preFunctionLength; double seekTime = eventCaller.GetGameAction(entityDatamodel[0], entityDatamodel[1]).preFunctionLength;
if (entity.beat - seekTime == preSequenceBeats[currentPreSequence]) 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); entitiesInRange.Add(entity);
} }
} }

View file

@ -159,7 +159,6 @@ namespace HeavenStudio.Games
if (stepsPassed > 1000) if (stepsPassed > 1000)
{ {
Debug.Log("Loop broke!");
return; return;
} }
} }

View file

@ -214,8 +214,6 @@ namespace HeavenStudio.Games.Scripts_CropStomp
} }
gotStomped = true; gotStomped = true;
Debug.Log("Stomped!");
var cond = Conductor.instance; var cond = Conductor.instance;
ParticleSystem spawnedHit = Instantiate(game.hitParticle, game.hitParticle.transform.parent); ParticleSystem spawnedHit = Instantiate(game.hitParticle, game.hitParticle.transform.parent);

View file

@ -345,8 +345,6 @@ namespace HeavenStudio.Games
public void LookAtDirection(int alienLookAt, int translatorLookAt) public void LookAtDirection(int alienLookAt, int translatorLookAt)
{ {
Debug.Log(alienLookAt);
Debug.Log(translatorLookAt);
switch (alienLookAt) switch (alienLookAt)
{ {
case 0: case 0:

View file

@ -153,7 +153,6 @@ namespace HeavenStudio.Games.Scripts_KarateMan
{ {
if (PlayerInput.CurrentControlStyle == InputController.ControlStyles.Touch) if (PlayerInput.CurrentControlStyle == InputController.ControlStyles.Touch)
{ {
Debug.Log("Touch charge");
inTouchCharge = true; inTouchCharge = true;
anim.DoScaledAnimationAsync("ManChargeOut", 0.5f); anim.DoScaledAnimationAsync("ManChargeOut", 0.5f);
} }

View file

@ -1097,7 +1097,6 @@ namespace HeavenStudio.Games.Scripts_KarateMan
public bool CanKick() public bool CanKick()
{ {
var joe = KarateMan.instance.Joe; var joe = KarateMan.instance.Joe;
Debug.Log(joe.inKick);
return status == FlyStatus.Fly && joe.inKick; return status == FlyStatus.Fly && joe.inKick;
} }

View file

@ -298,7 +298,7 @@ namespace HeavenStudio.Games
} }
if (CartGuyParentAnim.gameObject.activeSelf) { if (CartGuyParentAnim.gameObject.activeSelf) {
Debug.Log(cartPhone ? "PhoneBop" : "Bop"); // Debug.Log(cartPhone ? "PhoneBop" : "Bop");
if (cartPhone) { if (cartPhone) {
CartGuyAnim.DoScaledAnimationAsync("PhoneBop", 0.5f); CartGuyAnim.DoScaledAnimationAsync("PhoneBop", 0.5f);
} else { } else {

View file

@ -377,7 +377,7 @@ namespace HeavenStudio.Games
{ {
if (pair.name == name) 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); return pair.sequence.Play(startBeat);
} }
} }
@ -446,7 +446,7 @@ namespace HeavenStudio.Games
{ {
if (bopRegion.ContainsKey(e.beat)) 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; continue;
} }
if (isBool) if (isBool)

View file

@ -126,7 +126,7 @@ namespace HeavenStudio.Games.Scripts_Rockers
float pitch = SoundByte.GetPitchFromSemiTones(pitches[i], true); float pitch = SoundByte.GetPitchFromSemiTones(pitches[i], true);
float volume = GetVolumeBasedOnAmountOfStrings(pitches.Length); float volume = GetVolumeBasedOnAmountOfStrings(pitches.Length);
string soundName = "rockers/strings/" + (gleeClub ? "gleeClub/" : "normal/" + (i + 1)); 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); stringSounds[i] = SoundByte.PlayOneShotGame(soundName, -1, pitch, volume, true);
} }
} }

View file

@ -177,7 +177,6 @@ namespace HeavenStudio.Games.Scripts_NtrSamurai
default: // object initial spawn, flying towards board default: // object initial spawn, flying towards board
flyPos = cond.GetPositionFromBeat(launchProg.startBeat, 3f); flyPos = cond.GetPositionFromBeat(launchProg.startBeat, 3f);
Debug.Log(flyPos);
transform.position = currentCurve.GetPoint(Mathf.Clamp01(flyPos)); transform.position = currentCurve.GetPoint(Mathf.Clamp01(flyPos));
if (flyPos >= 1) if (flyPos >= 1)
transform.rotation = Quaternion.identity; transform.rotation = Quaternion.identity;

View file

@ -285,7 +285,6 @@ namespace HeavenStudio.Games
private void GrabJumpEvents(double beat) private void GrabJumpEvents(double beat)
{ {
Debug.Log("Beat: " + beat);
var jumpEvents = EventCaller.GetAllInGameManagerList("seeSaw", new string[] { "longLong", "longShort", "shortLong", "shortShort" }); var jumpEvents = EventCaller.GetAllInGameManagerList("seeSaw", new string[] { "longLong", "longShort", "shortLong", "shortShort" });
List<RiqEntity> tempEvents = new List<RiqEntity>(); List<RiqEntity> tempEvents = new List<RiqEntity>();
for (int i = 0; i < jumpEvents.Count; i++) for (int i = 0; i < jumpEvents.Count; i++)

View file

@ -302,14 +302,12 @@ namespace HeavenStudio.Games
{ {
if (hitBeats.Exists(x => x == offsetBeat - 0.5)) return; if (hitBeats.Exists(x => x == offsetBeat - 0.5)) return;
ScoreMiss(); ScoreMiss();
Debug.Log("Miss toe");
} }
} }
else if (!IsExpectingInputNow(InputAction_BasicPress)) else if (!IsExpectingInputNow(InputAction_BasicPress))
{ {
if (hitBeats.Exists(x => offsetBeat == x)) return; if (hitBeats.Exists(x => offsetBeat == x)) return;
ScoreMiss(); ScoreMiss();
Debug.Log("Miss");
} }
} }

View file

@ -298,7 +298,6 @@ namespace HeavenStudio.Games
} }
if (isBig) hasBigBall = true; if (isBig) hasBigBall = true;
} }
Debug.Log(autoPassTurn);
if (autoPassTurn) if (autoPassTurn)
{ {
PassTurn(beat + interval, interval, beat); PassTurn(beat + interval, interval, beat);

View file

@ -338,7 +338,6 @@ namespace HeavenStudio.Editor.Track
public void CreateWaveform() public void CreateWaveform()
{ {
Debug.Log("what");
// DrawWaveform(); // DrawWaveform();
// StartCoroutine(DrawWaveformRealtime()); // StartCoroutine(DrawWaveformRealtime());
} }

View file

@ -44,7 +44,11 @@ namespace HeavenStudio.Editor.Track
Vector2 relativeMousePosition; Vector2 relativeMousePosition;
var cam = Editor.instance.EditorCamera; 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); RectTransformUtility.ScreenPointToLocalPointInRectangle(rectTransform, Input.mousePosition, cam, out relativeMousePosition);
if (scrollDeltaY > 0) if (scrollDeltaY > 0)

View file

@ -27,7 +27,6 @@ namespace HeavenStudio.Editor
public void OnClickCountUp() public void OnClickCountUp()
{ {
SecretCounter++; SecretCounter++;
Debug.Log("SecretCounter: " + SecretCounter);
if (SecretCounter == 10 && Editor.instance != null) if (SecretCounter == 10 && Editor.instance != null)
{ {
secretObject.SetActive(true); secretObject.SetActive(true);
@ -40,7 +39,6 @@ namespace HeavenStudio.Editor
SecretActive = true; SecretActive = true;
SoundByte.PlayOneShot("applause"); SoundByte.PlayOneShot("applause");
Debug.Log("Activating Studio Dance...");
if (Editor.instance == null) if (Editor.instance == null)
{ {

View file

@ -26,8 +26,8 @@ namespace HeavenStudio.Util
{ {
if (behaviour == null) if (behaviour == null)
{ {
Debug.LogWarning("Starting a BeatAction with no assigned behaviour. The Conductor will be used instead."); Debug.LogWarning("Starting a BeatAction with no assigned behaviour. The Game Manager will be used instead.");
behaviour = Conductor.instance; behaviour = GameManager.instance;
} }
CancellationTokenSource cancelToken = new CancellationTokenSource(); CancellationTokenSource cancelToken = new CancellationTokenSource();
RunAsync(behaviour, actions, cancelToken.Token).Forget(); RunAsync(behaviour, actions, cancelToken.Token).Forget();