bad-piggies-0.1.3-porting/Assets/Scripts/Assembly-CSharp/e2dCurveTexture.cs

31 lines
507 B
C#
Raw Normal View History

2024-02-24 22:40:44 -05:00
using System;
using UnityEngine;
[Serializable]
public class e2dCurveTexture
{
public Texture texture;
public Vector2 size;
public bool fixedAngle;
public float fadeThreshold;
public e2dCurveTexture(Texture _texture)
{
texture = _texture;
size = new Vector2(1f, 1f);
fixedAngle = false;
fadeThreshold = 0.3f;
}
public e2dCurveTexture(e2dCurveTexture other)
{
texture = other.texture;
size = other.size;
fixedAngle = other.fixedAngle;
fadeThreshold = other.fadeThreshold;
}
}