public void ThrobAndGo()
 {
     state = ButtonState.EInactive;
     zobject.Throb();
     zobject.QueueAction(ZobjectAction.nHide);
     if (zobjectLabel != null)
     {
         zobjectLabel.Throb();
         zobjectLabel.QueueAction(ZobjectAction.nHide);
     }
 }
        public void Show()
        {
            this.Setup();
            speedObject.Show();
            speedObject.QueueAction(ZobjectAction.nThrobLooping);
            speedObject.SetThrobSize(0.05f);
            sheepPic.Show();
            infoBubbleBackground.Show();
            doneButton.Show();
            (doneButton.zobject).QueueAction(ZobjectAction.nThrobLooping);
            for (int i = 0; i < (int)Enum.kNumCommentLines; i++)
            {
                (commentLine [i]).SetFont(Globals.g_world.font);
                (commentLine [i]).SetColour(Constants.kColourLilac);
            }

            float yStart = 62.0f;
            float yPlus  = 40.0f;

            FunnyWord.WordInfo wInfo = new FunnyWord.WordInfo();
            wInfo.position    = Utilities.CGPointMake(160.0f, yStart);
            wInfo.scale       = 0.65f;
            wInfo.isCentrePos = true;
            string inWord = "you just got\n";

            (commentLine [0]).InitWithWordP1(wInfo, inWord);
            yStart        += yPlus;
            wInfo.position = Utilities.CGPointMake(160.0f, yStart);
            SpeedUpProgressEnum speedUp = ((Globals.g_world.frontEnd).profile).speedUpProgress;

            if (speedUp == SpeedUpProgressEnum.kSpeedUp_FirstSpeedBoost)
            {
                (commentLine [1]).SetColour(Constants.kColourLilac);
                inWord = "the turnip\n";
            }
            else if (speedUp == SpeedUpProgressEnum.kSpeedUp_SecondSpeedBoost)
            {
                (commentLine [1]).SetColour(Constants.kColourLilac);
                inWord = "the shear zen\n";
            }
            else if (speedUp == SpeedUpProgressEnum.kSpeedUp_ThirdSpeedBoost)
            {
                (commentLine [1]).SetColour(Constants.kColourLightblue);
                inWord = "the cattle prod\n";
            }
            else
            {
                Globals.Assert(false);
            }

            (commentLine [1]).InitWithWordP1(wInfo, inWord);
            yStart        += yPlus;
            wInfo.position = Utilities.CGPointMake(160.0f, yStart);
            inWord         = "speed boost!\n";
            (commentLine [2]).InitWithWordP1(wInfo, inWord);
            for (int i = 0; i < (int)Enum.kNumCommentLines; i++)
            {
                (commentLine[i]).SetLineAtlas(Globals.g_world.GetAtlas(AtlasType.kAtlas_FontLines));
                (commentLine[i]).SetColourAtlas(Globals.g_world.GetAtlas(AtlasType.kAtlas_FontColours));
                float showTime = (((float)i) * 0.3f);
                (commentLine[i]).Show(showTime);
                (commentLine[i]).Jiggle(0.5f);
            }
        }