24 lines
634 B
C#
24 lines
634 B
C#
using System.Threading.Tasks;
|
|
using UnityEngine;
|
|
using UnityEngine.Rendering;
|
|
using UnityEngine.Scripting;
|
|
|
|
[Preserve]//此特性用于防止在打包的时候这个脚本没有被打包进程序
|
|
|
|
public class SkipSplashImage : MonoBehaviour
|
|
{
|
|
//此特性用于在启动画面显示之前执行这个方法IRuntimeInitialize0nLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]
|
|
|
|
|
|
[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.BeforeSplashScreen)]
|
|
private static void Run()
|
|
{
|
|
Task.Run(()=>
|
|
{
|
|
SplashScreen.Stop(SplashScreen.StopBehavior.StopImmediate);
|
|
});
|
|
}
|
|
|
|
|
|
}
|