removed commented out code and print statements

the console should finally be message free! except for the unity memory leak lol but that one's not on us
This commit is contained in:
Sam
2023-05-06 19:05:46 -07:00
parent c13793565d
commit b6804e2986
12 changed files with 1 additions and 91 deletions

View File

@@ -24,7 +24,6 @@ public class PlayerBehavior : MonoBehaviour
private bool isDash = false;
public float dashForce = 1f;
public float dashTime = 1.0f;
private float dashInc = 0.1f;
private float currentDash = 0.0f;
private bool forceAdded = false;
Vector2 dashVec;
@@ -146,9 +145,6 @@ public class PlayerBehavior : MonoBehaviour
if (this.playerInput.actions["CymbalCrash"].WasPressedThisFrame()) {
// Play the sound
this.gameUI.ToggleCymbal(false);
// this.audioSource.clip = cymbalSound;
// this.audioSource.loop = false;
// this.audioSource.Play();
cymbalAudio.Play();
// Set the cymbal active for the equivalent of one second
@@ -226,7 +222,6 @@ public class PlayerBehavior : MonoBehaviour
void LetGoOfGrapple() {
bool currentlyPaused = StateController.Instance.isPaused;
if (grapplingRope.isGrappling && !currentlyPaused) {
// print("currently paused is " + currentlyPaused + ", releasing grapple");
if (tambourine != null) {
tambourine.GetComponent<TambourineBehavior>().DestroySelf();
}
@@ -241,7 +236,6 @@ public class PlayerBehavior : MonoBehaviour
}
else {
reflect = new Vector2(saveVelocity.x * reflectForce, -(saveVelocity.y) * reflectForce);
//reflect = new Vector2(saveVelocity.x * 1.1f, -(saveVelocity.y) * reflectForce);
hasBounced = true;
}
_rb.AddForce(reflect, ForceMode2D.Impulse);
@@ -250,7 +244,6 @@ public class PlayerBehavior : MonoBehaviour
}
void Water() {
print("water dash " + isDash);
if(isDash) {
saveVelocity = _rb.velocity / velocityCut;
if (isDash) {
@@ -268,7 +261,6 @@ public class PlayerBehavior : MonoBehaviour
grappleSurface = col.gameObject;
}
else if (col.tag == "instaDeath") {
print("player fell in spikes");
StartCoroutine(DestroyPlayer());
}
else if (col.tag == "spawnPoint") {
@@ -331,7 +323,6 @@ public class PlayerBehavior : MonoBehaviour
}
else {
StartCoroutine(DestroyPlayer());
print("enemy defeated player");
}
}
else if (collision.gameObject.tag == "Projectile") {
@@ -365,7 +356,6 @@ public class PlayerBehavior : MonoBehaviour
if (grapplingRope.isGrappling) {
LetGoOfGrapple();
}
// print("destroyPlayer called");
playerIsAlive = false;
audioSource.clip = deathSound;
audioSource.loop = false;
@@ -378,14 +368,10 @@ public class PlayerBehavior : MonoBehaviour
// destroy all tambourines
GameObject[] currentTambourines = GameObject.FindGameObjectsWithTag("tambourine");
print("tambs found: " + currentTambourines.Length);
if (currentTambourines != null) {
foreach (GameObject tambourine in currentTambourines) {
if (tambourine != null) {
tambourine.GetComponent<TambourineBehavior>().DestroySelf();
print("tamb destroyed");
} else {
print("null tamb");
}
}
}