Esempio n. 1
0
    //ColorUpdate
    static private StatusInfoPartsProcess ColorUpdateUpdate(StatusInfoPartsProcessState mine, StatusInfoParts statusInfoParts)
    {
        if (statusInfoParts.GetTimeCounter().measure(Time.deltaTime, statusInfoParts.GetTimeRegulation()))
        {
            BaseParts  baseParts  = statusInfoParts.GetBaseParts();
            FrameParts frameParts = statusInfoParts.GetFrameParts();

            baseParts.GetBaseSprite().color = t13.UnityUtil.Color32InFluctUpdateAlpha(
                t13.UnityUtil.ColorForColor32(baseParts.GetBaseSprite().color)
                , statusInfoParts.GetTimeFlucts(0)
                , 255
                , statusInfoParts.GetTimeRegulation()
                , statusInfoParts.GetTimeRegulation()
                );
            baseParts.GetHpLogoText().color = t13.UnityUtil.Color32InFluctUpdateAlpha(
                t13.UnityUtil.ColorForColor32(baseParts.GetHpLogoText().color)
                , statusInfoParts.GetTimeFlucts(1)
                , statusInfoParts.GetEndColor().a
                , statusInfoParts.GetTimeRegulation()
                , statusInfoParts.GetTimeRegulation()
                );
            baseParts.GetInfoNameEventText().GetText().color = t13.UnityUtil.Color32InFluctUpdateAlpha(
                t13.UnityUtil.ColorForColor32(baseParts.GetInfoNameEventText().GetText().color)
                , statusInfoParts.GetTimeFlucts(2)
                , statusInfoParts.GetEndColor().a
                , statusInfoParts.GetTimeRegulation()
                , statusInfoParts.GetTimeRegulation()
                );

            frameParts.GetFrameSprite().color = t13.UnityUtil.Color32InFluctUpdateAlpha(
                t13.UnityUtil.ColorForColor32(frameParts.GetFrameSprite().color)
                , statusInfoParts.GetTimeFlucts(4)
                , statusInfoParts.GetEndColor().a
                , statusInfoParts.GetTimeRegulation()
                , statusInfoParts.GetTimeRegulation()
                );
            if (frameParts.GetHpGaugeParts().GetInfoText() != null)
            {
                frameParts.GetHpGaugeParts().GetInfoText().color = t13.UnityUtil.Color32InFluctUpdateAlpha(
                    t13.UnityUtil.ColorForColor32(frameParts.GetHpGaugeParts().GetInfoText().color)
                    , statusInfoParts.GetTimeFlucts(5)
                    , statusInfoParts.GetEndColor().a
                    , statusInfoParts.GetTimeRegulation()
                    , statusInfoParts.GetTimeRegulation()
                    );
            }
            frameParts.GetHpGaugeParts().GetGauge().color = t13.UnityUtil.Color32InFluctUpdateAlpha(
                t13.UnityUtil.ColorForColor32(frameParts.GetHpGaugeParts().GetGauge().color)
                , statusInfoParts.GetTimeFlucts(6)
                , statusInfoParts.GetEndColor().a
                , statusInfoParts.GetTimeRegulation()
                , statusInfoParts.GetTimeRegulation()
                );

            return(StatusInfoPartsProcess.None);
        }
        else
        {
            BaseParts  baseParts  = statusInfoParts.GetBaseParts();
            FrameParts frameParts = statusInfoParts.GetFrameParts();

            baseParts.GetBaseSprite().color = t13.UnityUtil.Color32InFluctUpdateAlpha(
                t13.UnityUtil.ColorForColor32(baseParts.GetBaseSprite().color)
                , statusInfoParts.GetTimeFlucts(0)
                , 255
                , statusInfoParts.GetTimeCounter().count()
                , statusInfoParts.GetTimeRegulation()
                );
            baseParts.GetHpLogoText().color = t13.UnityUtil.Color32InFluctUpdateAlpha(
                t13.UnityUtil.ColorForColor32(baseParts.GetHpLogoText().color)
                , statusInfoParts.GetTimeFlucts(1)
                , statusInfoParts.GetEndColor().a
                , statusInfoParts.GetTimeCounter().count()
                , statusInfoParts.GetTimeRegulation()
                );
            baseParts.GetInfoNameEventText().GetText().color = t13.UnityUtil.Color32InFluctUpdateAlpha(
                t13.UnityUtil.ColorForColor32(baseParts.GetInfoNameEventText().GetText().color)
                , statusInfoParts.GetTimeFlucts(2)
                , statusInfoParts.GetEndColor().a
                , statusInfoParts.GetTimeCounter().count()
                , statusInfoParts.GetTimeRegulation()
                );

            frameParts.GetFrameSprite().color = t13.UnityUtil.Color32InFluctUpdateAlpha(
                t13.UnityUtil.ColorForColor32(frameParts.GetFrameSprite().color)
                , statusInfoParts.GetTimeFlucts(4)
                , statusInfoParts.GetEndColor().a
                , statusInfoParts.GetTimeCounter().count()
                , statusInfoParts.GetTimeRegulation()
                );
            if (frameParts.GetHpGaugeParts().GetInfoText() != null)
            {
                frameParts.GetHpGaugeParts().GetInfoText().color = t13.UnityUtil.Color32InFluctUpdateAlpha(
                    t13.UnityUtil.ColorForColor32(frameParts.GetHpGaugeParts().GetInfoText().color)
                    , statusInfoParts.GetTimeFlucts(5)
                    , statusInfoParts.GetEndColor().a
                    , statusInfoParts.GetTimeCounter().count()
                    , statusInfoParts.GetTimeRegulation()
                    );
            }
            frameParts.GetHpGaugeParts().GetGauge().color = t13.UnityUtil.Color32InFluctUpdateAlpha(
                t13.UnityUtil.ColorForColor32(frameParts.GetHpGaugeParts().GetGauge().color)
                , statusInfoParts.GetTimeFlucts(6)
                , statusInfoParts.GetEndColor().a
                , statusInfoParts.GetTimeCounter().count()
                , statusInfoParts.GetTimeRegulation()
                );
        }

        return(mine.state_);
    }