Пример #1
0
    //FillAmountUpdate
    static private UpdateImageProcess FillAmountUpdateUpdate(UpdateImageProcessState mine, UpdateImage updateImage)
    {
        if (updateImage.GetTimeCounter().measure(Time.deltaTime, updateImage.GetTimeRegulation()))
        {
            updateImage.GetImage().fillAmount = updateImage.GetTimeFlucts(0).InFluct(
                updateImage.GetTimeRegulation()
                , updateImage.GetImage().fillAmount
                , updateImage.GetEndFillAmount()
                , updateImage.GetTimeRegulation()
                );

            return(UpdateImageProcess.None);
        }
        else
        {
            updateImage.GetImage().fillAmount = updateImage.GetTimeFlucts(0).InFluct(
                updateImage.GetTimeCounter().count()
                , updateImage.GetImage().fillAmount
                , updateImage.GetEndFillAmount()
                , updateImage.GetTimeRegulation()
                );
        }

        return(mine.state_);
    }
Пример #2
0
    //ChangeColor
    static private UpdateImageProcess ChangeColorUpdate(UpdateImageProcessState mine, UpdateImage updateImage)
    {
        if (updateImage.GetTimeCounter().measure(Time.deltaTime, updateImage.GetTimeRegulation()))
        {
            updateImage.GetImage().color = t13.UnityUtil.Color32InFluctUpdateRed(
                updateImage.GetImage().color
                , updateImage.GetTimeFlucts(0)
                , updateImage.GetChangeEndColor().r
                , updateImage.GetTimeRegulation()
                , updateImage.GetTimeRegulation()
                );

            updateImage.GetImage().color = t13.UnityUtil.Color32InFluctUpdateGreen(
                updateImage.GetImage().color
                , updateImage.GetTimeFlucts(1)
                , updateImage.GetChangeEndColor().g
                , updateImage.GetTimeRegulation()
                , updateImage.GetTimeRegulation()
                );

            updateImage.GetImage().color = t13.UnityUtil.Color32InFluctUpdateBlue(
                updateImage.GetImage().color
                , updateImage.GetTimeFlucts(2)
                , updateImage.GetChangeEndColor().b
                , updateImage.GetTimeRegulation()
                , updateImage.GetTimeRegulation()
                );

            updateImage.GetImage().color = t13.UnityUtil.Color32InFluctUpdateAlpha(
                updateImage.GetImage().color
                , updateImage.GetTimeFlucts(3)
                , updateImage.GetChangeEndColor().a
                , updateImage.GetTimeRegulation()
                , updateImage.GetTimeRegulation()
                );

            return(UpdateImageProcess.None);
        }
        else
        {
            updateImage.GetImage().color = t13.UnityUtil.Color32InFluctUpdateRed(
                updateImage.GetImage().color
                , updateImage.GetTimeFlucts(0)
                , updateImage.GetChangeEndColor().r
                , updateImage.GetTimeCounter().count()
                , updateImage.GetTimeRegulation()
                );

            updateImage.GetImage().color = t13.UnityUtil.Color32InFluctUpdateGreen(
                updateImage.GetImage().color
                , updateImage.GetTimeFlucts(1)
                , updateImage.GetChangeEndColor().g
                , updateImage.GetTimeCounter().count()
                , updateImage.GetTimeRegulation()
                );

            updateImage.GetImage().color = t13.UnityUtil.Color32InFluctUpdateBlue(
                updateImage.GetImage().color
                , updateImage.GetTimeFlucts(2)
                , updateImage.GetChangeEndColor().b
                , updateImage.GetTimeCounter().count()
                , updateImage.GetTimeRegulation()
                );

            updateImage.GetImage().color = t13.UnityUtil.Color32InFluctUpdateAlpha(
                updateImage.GetImage().color
                , updateImage.GetTimeFlucts(3)
                , updateImage.GetChangeEndColor().a
                , updateImage.GetTimeCounter().count()
                , updateImage.GetTimeRegulation()
                );
        }

        return(mine.state_);
    }