Example #1
0
    IEnumerator Transition(int finalRoll)
    {
        yield return(new WaitForSeconds(1F));

        Vector3 startPos = rollBox.transform.position;
        Vector3 endPos   = rollCornerPos.transform.position;

        yield return(LocationUtil.SlerpVector(rollBox.transform, endPos, ROLL_TRANSITION_TIME));

        DisplayChoices(finalRoll);
    }