// //Scale public static TweenJobTransform Scale(GameObject scaledObject, Vector3 to, float time) { if (time == 0 || scaledObject == null) { return(null); } TweenJobTransform job = new TweenJobTransform(to, time, jobIndex++, scaledObject, TweenType.Scale); Engine.AddJob(job); return(job); }
public static TweenJobTransform MoveLocal(GameObject movedObject, Vector3 to, float time) { if (time == 0 || movedObject == null) { return(null); } TweenJobTransform job = new TweenJobTransform(to, time, jobIndex++, movedObject, TweenType.LocalMove); Engine.AddJob(job); return(job); }