//   void tw_a ()
    //{

    //	TimerManager.inst.Add (0.040f, 0, tw_b);
    //}

    //void tw_b (float f)
    //{
    //	tw_a_n += 2;
    //	if (tw_a_n > 360)
    //	{
    //		tw_a_n = 0;
    //	}
    //	rankImg.rotation += (float)Math.Cos ((double)(tw_a_n)) * 20;
    //       tw_a_n -= 4;
    //       if (tw_a_b)
    //	{
    //		rankImg.rotation = 0;
    //		TimerManager.inst.Remove (tw_b);
    //	}
    //}

    private void Effect4()
    {
        rankScoreBg.visible = true;
        switch (isRankUp(rankScoreEnd))
        {
        case 0:
            rankImg.visible = true;

            mask.visible = true;
            rankImg.TweenMoveX(g3.x + 40, 0.5f).OnComplete(() =>
            {
            });
            //rankImg.TweenMoveY(g3.y + 20, 0.5f).OnComplete(() =>
            // {

            // });

            rankImg.TweenScale(new Vector2(2.418f, 2.4358f), 0.2f).OnComplete(() =>
            {
                TimerManager.inst.Add(0.2f, 1, (float t1) =>
                {
                    Tools.AddColorFilter(rankImg);
                    EffectManager.inst.SetFilterAdjustBrightness(rankImg, 1f, 0f, 1f);

                    TimerManager.inst.Add(0.5f, 1, (float t) =>
                    {
                        GameObject g1 = EffectManager.inst.AddPrefab(Config.EFFECT_HAPPY, g3);
                        //				GameObjectScaler.Scale (g1, 0.5f);
                        g1.transform.localScale *= 0.5f;
                        TimerManager.inst.Add(1f, 1, (float t2) =>
                        {
                            this.initQueue.Next();
                        });
                    });
                });
            });
            break;

        case 1:
            rankImg.visible = true;
            mask.visible    = true;
            rankImg.TweenMoveX(g3.x + 40, 0.5f).OnComplete(() =>
            {
            });
            //rankImg.TweenMoveY(g3.y + 20, 0.5f).OnComplete(() =>
            //{

            //});
            rankImg.TweenScale(new Vector2(2.418f, 2.4358f), 0.2f).OnComplete(() =>
            {
                TimerManager.inst.Add(0.2f, 1, (float t1) =>
                {
                    Tools.AddColorFilter(rankImg);
                    EffectManager.inst.SetFilterAdjustBrightness(rankImg, 1f, 0f, 1f);
                    TimerManager.inst.Add(0.5f, 1, (float t) =>
                    {
                        GameObject g            = EffectManager.inst.AddPrefab(Config.EFFECT_GET_LOW, g3);
                        g.transform.localScale *= 0.5f;
                        TimerManager.inst.Add(1f, 1, (float t2) =>
                        {
                            this.initQueue.Next();
                        });
                    });
                });
            });
            break;

        case 2:
            TimerManager.inst.Add(0.2f, 1, (float t) =>
            {
                this.initQueue.Next();
            });
            break;
        }
    }