cull(engine-cleanup): pass-8 phase-2 cascade round 1 after CardDetailUI stub
This commit is contained in:
@@ -174,47 +174,6 @@ public class iTween : MonoBehaviour
|
||||
|
||||
private Transform thisTransform;
|
||||
|
||||
public static void ValueTo(GameObject target, Hashtable args)
|
||||
{
|
||||
args = CleanArgs(args);
|
||||
if (!args.Contains("onupdate") || !args.Contains("from") || !args.Contains("to"))
|
||||
{
|
||||
Debug.LogError("iTween Error: ValueTo() requires an 'onupdate' callback function and a 'from' and 'to' property. The supplied 'onupdate' callback must accept a single argument that is the same type as the supplied 'from' and 'to' properties!");
|
||||
return;
|
||||
}
|
||||
args["type"] = "value";
|
||||
if (args["from"].GetType() == typeof(Vector2))
|
||||
{
|
||||
args["method"] = "vector2";
|
||||
}
|
||||
else if (args["from"].GetType() == typeof(Vector3))
|
||||
{
|
||||
args["method"] = "vector3";
|
||||
}
|
||||
else if (args["from"].GetType() == typeof(Rect))
|
||||
{
|
||||
args["method"] = "rect";
|
||||
}
|
||||
else if (args["from"].GetType() == typeof(float))
|
||||
{
|
||||
args["method"] = "float";
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!(args["from"].GetType() == typeof(Color)))
|
||||
{
|
||||
Debug.LogError("iTween Error: ValueTo() only works with interpolating Vector3s, Vector2s, floats, ints, Rects and Colors!");
|
||||
return;
|
||||
}
|
||||
args["method"] = "color";
|
||||
}
|
||||
if (!args.Contains("easetype"))
|
||||
{
|
||||
args.Add("easetype", EaseType.linear);
|
||||
}
|
||||
Launch(target, args);
|
||||
}
|
||||
|
||||
public static void ColorFrom(GameObject target, Hashtable args)
|
||||
{
|
||||
Color color = default(Color);
|
||||
|
||||
Reference in New Issue
Block a user