コード例 #1
0
    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;
        }
    }
コード例 #2
0
    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;
        }
    }
コード例 #3
0
 public virtual void SetAlpha(float startalpha, float alpha, float animTime, DoTweener.Style style)
 {
 }