<commit_before>﻿using UnityEngine;
using System.Collections;

public class Helper {

    public static void TweenCardToPosition(Transform card, Vector3 cardPosition, float tweenTime = 0.5f, bool rotate = true)
    {
        iTween.MoveTo(card.gameObject, iTween.Hash("time", tweenTime,
                                                   "position", cardPosition,
                                                   "easetype", iTween.EaseType.easeInOutSine,
                                                   "islocal", true
                                                   ));

        if (rotate)
        {
            iTween.RotateTo(card.gameObject, iTween.Hash("time", tweenTime,
                                                         "z", 270f,
                                                         "easetype", iTween.EaseType.easeInOutSine,<commit_msg>Added CardState parameter on animation end<commit_after>﻿using UnityEngine;
using System.Collections;
using CardStates = GenericCard.CardStates;

public class Helper {

    public static void TweenCardToPosition(Transform card, Vector3 cardPosition, CardStates stateAfterAnimation, float tweenTime = 0.5f, bool rotate = true)
    {
        iTween.MoveTo(card.gameObject, iTween.Hash("time", tweenTime,
                                                   "position", cardPosition,
                                                   "easetype", iTween.EaseType.easeInOutSine,
                                                   "islocal", true
                                                   ));

        if (rotate)
        {
            iTween.RotateTo(card.gameObject, iTween.Hash("time", tweenTime,
                                                         "z", 270f,
                                                         "easetype", iTween.EaseType.easeInOutSine,
{'fraction_non_alphanumeric': 0.07415485278080698, 'fraction_numerical': 0.006543075245365322, 'mean_word_length': 1.1512309495896835, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1646723', 'n_tokens_mistral': 416, 'n_tokens_neox': 391, 'n_words': 85}