TO SQUASH: Added faders to game scene.
This commit is contained in:
@@ -28,6 +28,8 @@ public class Player : MonoBehaviour
|
||||
|
||||
public MusicManager musicManager;
|
||||
|
||||
public Fader fader;
|
||||
|
||||
private bool flipped = false;
|
||||
|
||||
private bool gameOver = false;
|
||||
@@ -122,6 +124,6 @@ public class Player : MonoBehaviour
|
||||
musicManager.pauseMusic();
|
||||
audioSource.PlayOneShot(defeat);
|
||||
yield return new WaitForSeconds(1.3f);
|
||||
UnityEngine.SceneManagement.SceneManager.LoadScene("GameOver");
|
||||
fader.resetFader();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user