mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-12 22:44:35 +01:00
31 lines
474 B
C#
31 lines
474 B
C#
using UnityEngine;
|
|
|
|
namespace MoleMole
|
|
{
|
|
public class AsyncAssetRequst
|
|
{
|
|
public AsyncOperation operation;
|
|
|
|
public object asset
|
|
{
|
|
get
|
|
{
|
|
if (operation is ResourceRequest)
|
|
{
|
|
return ((ResourceRequest)operation).asset;
|
|
}
|
|
if (operation is AssetBundleRequest)
|
|
{
|
|
return ((AssetBundleRequest)operation).asset;
|
|
}
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public AsyncAssetRequst(AsyncOperation operation)
|
|
{
|
|
this.operation = operation;
|
|
}
|
|
}
|
|
}
|