public ColorTo SetColorRewind(Color color, float duration) { m_DOTweenActionType = DOTweenActionType.ColorRewind; m_DOTweenAction = new ColorTo(color, duration); return(m_DOTweenAction as ColorTo); }
public ScaleTo SetScaleTo(Vector3 scale, float duration) { m_DOTweenActionType = DOTweenActionType.ScaleTo; m_DOTweenAction = new ScaleTo(scale, duration); return(m_DOTweenAction as ScaleTo); }
public RotateBy SetRotateBy(Vector3 rotation, float duration) { m_DOTweenActionType = DOTweenActionType.RotateBy; m_DOTweenAction = new RotateBy(rotation, duration); return(m_DOTweenAction as RotateBy); }
public RotateTo SetRotateTo(Vector3 rotation, float duration) { m_DOTweenActionType = DOTweenActionType.RotateTo; m_DOTweenAction = new RotateTo(rotation, duration); return(m_DOTweenAction as RotateTo); }
public MovePaths SetMovePaths(Vector3[] paths, float duration, PathType pathType = PathType.Linear) { m_DOTweenActionType = DOTweenActionType.MovePaths; m_DOTweenAction = new MovePaths(paths, duration, pathType); return(m_DOTweenAction as MovePaths); }
public MoveBy SetMoveBy(Vector3 endPoint, float duration) { m_DOTweenActionType = DOTweenActionType.MoveBy; m_DOTweenAction = new MoveBy(endPoint, duration); return(m_DOTweenAction as MoveBy); }
public EventAction(bool isSequence, MonoBehaviour MonoBehaviour) : base(MonoBehaviour, isSequence) { m_DOTweenAction = null; }