Revamp the prompt system, the bootstrapper system, the starting cinematic
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using AppleHills.Core.Settings;
|
||||
using Core;
|
||||
using UnityEngine.AddressableAssets;
|
||||
using UnityEngine.ResourceManagement.ResourceLocations;
|
||||
|
||||
namespace Utils
|
||||
{
|
||||
@@ -68,5 +71,11 @@ namespace Utils
|
||||
// Apply screen normalization
|
||||
return frameAdjustedSpeed * screenNormalizationFactor;
|
||||
}
|
||||
|
||||
public static bool AddressableKeyExists(object key)
|
||||
{
|
||||
IList<IResourceLocation> locations;
|
||||
return Addressables.LoadResourceLocationsAsync(key).WaitForCompletion()?.Count > 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user