private void StyleFunction(float fromAlpha, float toAlpha, float animTime, DoTweener.Style style) { if (sprite == null) { Debug.Log("GameObject: " + this.gameObject.name + "no iamge, not alpha action"); return; } switch (style) { case Style.Once: One(fromAlpha, toAlpha, animTime); break; case Style.Loop: Loop(fromAlpha, toAlpha, animTime); break; case Style.Repeatedly: Repeatedly(fromAlpha, toAlpha, animTime); break; case Style.PingPong: PingPong(fromAlpha, toAlpha, animTime); break; } }
private void StyleFunction(float fromAlpha, float toAlpha, float animTime, DoTweener.Style style) { switch (style) { case Style.Once: One(fromAlpha, toAlpha); break; case Style.Loop: Loop(fromAlpha, toAlpha); break; case Style.Repeatedly: Repeatedly(fromAlpha, toAlpha); break; case Style.PingPong: PingPong(fromAlpha, toAlpha); break; } }
public virtual void SetAlpha(float startalpha, float alpha, float animTime, DoTweener.Style style) { }