Skip to content

Commit

Permalink
fixed issue #33
Browse files Browse the repository at this point in the history
  • Loading branch information
forestt committed Dec 11, 2016
1 parent c27656c commit a25397a
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 2 deletions.
Binary file modified Assets/Prefabs/GameManager.prefab
Binary file not shown.
Binary file modified Assets/Scenes/Game.unity
Binary file not shown.
1 change: 1 addition & 0 deletions Assets/Scripts/GameProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ public void PlayLifelineAudienceMusic()

public void PlaySoundByNumber(int numberOfSound)
{
Debug.Log("played sound: " + classicModeAudio[numberOfSound].name);
soundsAudioSource.Stop();
soundsAudioSource.PlayOneShot(classicModeAudio[numberOfSound]);
}
Expand Down
6 changes: 4 additions & 2 deletions Assets/Scripts/LifelinePhone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,15 @@ public IEnumerator LifelinePhoneAnimation(string answer)

if (timeOfAnswer == timer)
{
//Debug.Log("- I think it's " + answer);
if (timeOfAnswer >= 1)
{
GameProcess.instance.PlaySoundByNumber(83);
}
UIManager.instance.phoneDialogText.text = "\t- Hmmmm...\n\t- I think it's " + answer;
UIManager.instance.phonePanel.transform.GetChild(1).GetComponent<Animator>().SetBool("HideTimer", true);
UIManager.instance.phonePanel.transform.GetChild(0).gameObject.SetActive(false);

UIManager.instance.phonePanel.transform.GetChild(3).GetComponent<Button>().interactable = true;
GameProcess.instance.StopSound();
GameProcess.instance.UnPauseMusic();
}

Expand Down

0 comments on commit a25397a

Please sign in to comment.