31 lines
550 B
C#
31 lines
550 B
C#
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;
|
|
}
|
|
}
|