Ejemplo n.º 1
0
    private void AllTweenType()
    {
        int x = 0;
        int y = 0;
        int w = 0;
        int h = 0;

        for (int i = 0; i < tweenTypes.Count; i++)
        {
            x = 5;
            y = 5 * (i + 1) + 25 * i;
            w = 360;
            h = 25;
            if (DrawButton(new Rect(x, y, w, h), tweenTypes[i].ToString()))
            {
                tweenAnimationInfo = new TweenAnimationInfo()
                {
                    tweenTypeData = tweenTypes[i], animationCurve = new AnimationCurve()
                };
                tweenAnimationInfos.Add(tweenAnimationInfo);
                isAdd = false;
            }
        }
        addRectGroup.height = y + 25;
    }
Ejemplo n.º 2
0
    private void AllTweenAnimation()
    {
        int x = 0;
        int y = 0;
        int w = 0;
        int h = 0;

        for (int i = 0; i < tweenAnimationInfos.Count; i++)
        {
            x = 5;
            y = 2 * (i + 1) + 30 * i;
            w = 370;
            h = 30;
            if (!isAdd)
            {
                if (DrawButton(new Rect(x, y, w, h), tweenAnimationInfos[i].tweenTypeData.ToString()))
                {
                    tweenAnimationInfo = tweenAnimationInfos[i];
                    isSetData          = true;
                }
            }
            else
            {
                DrawBox(new Rect(x, y, w, h), tweenAnimationInfos[i].tweenTypeData.ToString());
            }
        }
        rectGroup.height = y + 30;
    }