cull(engine-cleanup): pass-8 phase-2 cascade round 2 after MyPageItemBattle stub
This commit is contained in:
@@ -6,39 +6,6 @@ public class FadeUtility
|
||||
{
|
||||
private static readonly AnimationCurve FADE_ALPHA_ANIM_CURVE = AnimationCurve.Linear(0f, 0f, 1f, 1f);
|
||||
|
||||
private static void FadeOut(GameObject obj, Action onFinish)
|
||||
{
|
||||
UIButtonColor button = obj.GetComponent<UIButtonColor>();
|
||||
float originalDuration = 0f;
|
||||
if (button != null)
|
||||
{
|
||||
originalDuration = button.duration;
|
||||
button.duration = 0f;
|
||||
}
|
||||
TweenColor component = obj.GetComponent<TweenColor>();
|
||||
if (component != null)
|
||||
{
|
||||
component.enabled = false;
|
||||
}
|
||||
FadeOutObject(obj.AddMissingComponent<UITweenAlpha>(), delegate
|
||||
{
|
||||
if (button != null)
|
||||
{
|
||||
button.duration = originalDuration;
|
||||
}
|
||||
onFinish();
|
||||
});
|
||||
}
|
||||
|
||||
public static void FadeFinish(GameObject obj)
|
||||
{
|
||||
UITweenAlpha component = obj.GetComponent<UITweenAlpha>();
|
||||
if (!(component == null))
|
||||
{
|
||||
component.End();
|
||||
}
|
||||
}
|
||||
|
||||
public static void FadeOutObject(UITweenAlpha tweenAlpha, Action onFinish = null)
|
||||
{
|
||||
if (!(tweenAlpha == null))
|
||||
|
||||
Reference in New Issue
Block a user