예제 #1
0
 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);
 }
예제 #2
0
 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);
 }
예제 #3
0
 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);
 }