//------------------------------------------------------------
// 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.Rect 变量类。
///
public sealed class VarRect : Variable
{
///
/// 初始化 UnityEngine.Rect 变量类的新实例。
///
public VarRect()
{
}
///
/// 从 UnityEngine.Rect 到 UnityEngine.Rect 变量类的隐式转换。
///
/// 值。
public static implicit operator VarRect(Rect value)
{
VarRect varValue = ReferencePool.Acquire();
varValue.Value = value;
return varValue;
}
///
/// 从 UnityEngine.Rect 变量类到 UnityEngine.Rect 的隐式转换。
///
/// 值。
public static implicit operator Rect(VarRect value)
{
return value.Value;
}
}
}