Files
Barrack-Unity/Assets/Scripts/SplashScreen/SplashScreen.cs
T

25 lines
617 B
C#

using UnityEngine;
public class SplashScreen : FadeCallback
{
public AudioSource yeah; // Reference to the AudioSource component for playing the sound effect
public Fader faderScript; // Reference to the Fader script for handling the fade effect
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start() { }
// Update is called once per frame
void Update() { }
public override void OnFadeStarted()
{
yeah.PlayDelayed(1.0f);
}
public override void OnFadeComplete()
{
faderScript.resetFader();
}
}