added basic pause menu
This commit is contained in:
@@ -132,11 +132,14 @@ public class PlayerBehavior : MonoBehaviour
|
||||
}
|
||||
|
||||
void LetGoOfGrapple() {
|
||||
if (tambourine != null && grapplingRope.isGrappling)
|
||||
{
|
||||
bool currentlyPaused = GameObject.Find("PauseMenu").GetComponent<PauseController>().isPaused;
|
||||
if (grapplingRope.isGrappling && !currentlyPaused) {
|
||||
print("currently paused is " + currentlyPaused + ", releasing grapple");
|
||||
if (tambourine != null) {
|
||||
tambourine.GetComponent<TambourineBehavior>().DestroySelf();
|
||||
}
|
||||
grapplingGun.ReleaseGrapple();
|
||||
}
|
||||
}
|
||||
|
||||
void OnTriggerEnter2D(Collider2D col)
|
||||
|
||||
Reference in New Issue
Block a user