protected void startAnimation(int[] nextPos)
    {
        Direction.Cube upOrDown = Direction.Cube.None;
        if (nextPos[0] < this.curPos[0])
        {
            upOrDown = Direction.Cube.Down;
        }
        else
        {
            upOrDown = Direction.Cube.Up;
        }

        this.curPos = nextPos;
        AnimationClip clip = CustomAnimation.setAnimationTo(gameObject, nextPos, upOrDown);

        anim.AddClip(clip, clip.name);
        anim.Play(clip.name);
    }