Skip to content

Commit

Permalink
Fixed grappling
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergueille committed Dec 2, 2023
1 parent 5303b3f commit 5f1d326
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion Assets/Prefabs/Character.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -5260,7 +5260,7 @@ MonoBehaviour:
linePointsCount: 100
dashedLineOffsetSpeed: -1
dashedFadeSpeed: 2
grapplingStartPosition: 0.5
grapplingStartPosition: 0
balloons: {fileID: 5900648445083634875}
balloonsScaleMovement:
amplitude: 0.59
Expand Down
3 changes: 0 additions & 3 deletions Assets/Scripts/GameManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ private void Start()
}

transitionMovement.Do(t => transitionMaterial.SetFloat("_Size", t));
Debug.Log($"A - {AudioListener.volume}");
AudioListener.volume = 1;

LocalizationManager.UpdateLanguage(language);
Expand Down Expand Up @@ -751,12 +750,10 @@ public void TogglePauseScreen(bool enabled)

public void ReturnToMenu()
{
//transitionMovement.DoNormalized(t => {AudioListener.volume = 1 - t; Debug.Log($"B - {AudioListener.volume}");});
transitionMovement.DoReverse(t => transitionMaterial.SetFloat("_Size", t)).setIgnoreTimeScale(true).setOnComplete(() => {
Time.timeScale = 1;
finishScreenCanvas.alpha = 0;
AudioListener.volume = 1;
Debug.Log($"C - {AudioListener.volume}");
SceneManager.LoadScene("Menu");

Destroy(pointer.gameObject);
Expand Down

0 comments on commit 5f1d326

Please sign in to comment.