public TweenUIPosition(GameObject obj, Vector2 start, Vector2 end, float time, Easing.FunctionType easeType) { rectTransform = obj.GetComponent <RectTransform>(); startPos = start; endPos = end; duration = time; easingFunction = Easing.GetFunctionWithTypeEnum(easeType); }
public ScaleTitle(GameObject titleObj, Vector3 initial, Vector3 target, float dur, Easing.FunctionType easingType) { title = titleObj; initialScale = initial; targetScale = target; duration = dur; easeType = Easing.GetFunctionWithTypeEnum(easingType); }
public SlideCharacter(GameObject chara, Vector3 initial, Vector3 target, float dur, Easing.FunctionType easingType) { character = chara; initialPos = initial; targetPos = target; duration = dur; easeType = Easing.GetFunctionWithTypeEnum(easingType); }