TO SQUASH: Changes.
This commit is contained in:
@@ -35,6 +35,7 @@ public class Intro : FadeCallback
|
||||
}
|
||||
|
||||
music.Stop();
|
||||
faderScript.Invoke("resetFader", 0.0f);
|
||||
}
|
||||
|
||||
private IEnumerator PlayAudioThenActivateGameObject()
|
||||
|
||||
@@ -5,7 +5,7 @@ public class IntroSkipper : MonoBehaviour
|
||||
{
|
||||
public Intro fadeIn;
|
||||
|
||||
public Fader fadeOut;
|
||||
public Fader fadeOut = null;
|
||||
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
@@ -24,7 +24,9 @@ public class IntroSkipper : MonoBehaviour
|
||||
mouse != null && mouse.leftButton.wasPressedThisFrame)
|
||||
{
|
||||
fadeIn.forceStopAudioCoroutine();
|
||||
fadeOut.resetFader();
|
||||
if (fadeOut != null) {
|
||||
fadeOut.resetFader();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user