r2mods/ilspy_dump/ror2_csproj/RoR2/AssetReferenceScene.cs

31 lines
550 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using System;
using UnityEngine;
using UnityEngine.AddressableAssets;
namespace RoR2;
[Serializable]
public class AssetReferenceScene : AssetReference
{
public AssetReferenceScene(string guid)
: base(guid)
{
}
public override bool ValidateAsset(string path)
{
if (base.ValidateAsset(path))
{
return path.EndsWith(".unity", StringComparison.OrdinalIgnoreCase);
}
return false;
}
public override bool ValidateAsset(UnityEngine.Object obj)
{
bool num = base.ValidateAsset(obj);
bool flag = false;
return num && flag;
}
}