//------------------------------------------------------------
// Game Framework
// Copyright © 2013-2021 loyalsoft. All rights reserved.
// Homepage: http://www.game7000.com/
// Feedback: http://www.game7000.com/
//------------------------------------------------------------
using GameFramework;
using UnityEngine;
namespace UnityGameFramework.Runtime
{
///
/// UnityEngine.Texture 变量类。
///
public sealed class VarTexture : Variable
{
///
/// 初始化 UnityEngine.Texture 变量类的新实例。
///
public VarTexture()
{
}
///
/// 从 UnityEngine.Texture 到 UnityEngine.Texture 变量类的隐式转换。
///
/// 值。
public static implicit operator VarTexture(Texture value)
{
VarTexture varValue = ReferencePool.Acquire();
varValue.Value = value;
return varValue;
}
///
/// 从 UnityEngine.Texture 变量类到 UnityEngine.Texture 的隐式转换。
///
/// 值。
public static implicit operator Texture(VarTexture value)
{
return value.Value;
}
}
}