TO SQUASH: Code formatting changes.
This commit is contained in:
@@ -26,7 +26,7 @@ public class Intro : FadeCallback
|
||||
|
||||
public override void OnFadeComplete() { }
|
||||
|
||||
public void forceStopAudioCoroutine()
|
||||
public void ForceStopAudioCoroutine()
|
||||
{
|
||||
if (playAudioCoroutine != null)
|
||||
{
|
||||
@@ -35,13 +35,13 @@ public class Intro : FadeCallback
|
||||
}
|
||||
|
||||
music.Stop();
|
||||
faderScript.Invoke("resetFader", 0.0f);
|
||||
faderScript.Invoke("ResetFader", 0.0f);
|
||||
}
|
||||
|
||||
private IEnumerator PlayAudioThenActivateGameObject()
|
||||
{
|
||||
music.Play();
|
||||
yield return new WaitUntil(() => music.time >= music.clip.length);
|
||||
faderScript.Invoke("resetFader", 0.0f);
|
||||
faderScript.Invoke("ResetFader", 0.0f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,9 +23,9 @@ public class IntroSkipper : MonoBehaviour
|
||||
||
|
||||
mouse != null && mouse.leftButton.wasPressedThisFrame)
|
||||
{
|
||||
fadeIn.forceStopAudioCoroutine();
|
||||
fadeIn.ForceStopAudioCoroutine();
|
||||
if (fadeOut != null) {
|
||||
fadeOut.resetFader();
|
||||
fadeOut.ResetFader();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user