Example #1
0
 public override UniTask <Texture2D> LoadBackgroundVignetteAsync(Context context, R1_PC_WorldFile world, R1_PC_LevFile level, bool parallax) =>
 UniTask.FromResult(parallax ? null : LoadArchiveFile <PCX>(context, GetVignetteFilePath(context.Settings), world.Plan0NumPcxFiles[level.KitLevelDefines.BG_0])?.ToTexture(true));
Example #2
0
 public override async UniTask <Texture2D> LoadBackgroundVignetteAsync(Context context, R1_PC_WorldFile world, R1_PC_LevFile level, bool parallax)
 {
     return((await LoadPCXAsync(context, world.Plan0NumPcx[parallax ? level.ParallaxBackgroundIndex : level.BackgroundIndex])).ToTexture(true));
 }