Exemple #1
0
        private void MoveToUpFromCenterClear()
        {
            spriteTopBg.RemoveAllActions();
            spriteTop.RemoveAllActions();

            spriteBelowBg.RemoveAllActions();
            spriteBelow.RemoveAllActions();

            navSpriteTop.RemoveAllActions();
            navLabelTop.RemoveAllActions();

            navSpriteBottom.RemoveAllActions();
            navLabelBottom.RemoveAllActions();

            SKAction actionTop        = SKAction.MoveToY((View.Frame.Height * 1.5f) - 60, 0.2);
            SKAction actionBelow      = SKAction.MoveToY((View.Frame.Height / 2) - 60, 0.2);
            SKAction actionBelowLabel = SKAction.MoveToY(View.Frame.Height - 100, 0.2);
            SKAction actionTopLabel   = SKAction.MoveToY(View.Frame.Height - 40, 0.2);

            spriteTopBg.RunAction(actionTop);
            spriteTop.RunAction(actionTop);

            spriteBelowBg.RunAction(actionBelow);
            spriteBelow.RunAction(actionBelow);

            navSpriteTop.RunAction(actionTopLabel);
            navLabelTop.RunAction(actionTopLabel);

            navSpriteBottom.RunAction(actionBelowLabel);
            navLabelBottom.RunAction(actionBelowLabel);

            gameMode = 1;
        }
Exemple #2
0
        // Remove the Info Text (fade out)
        private void ReleaseInfoText()
        {
            SKAction actionOut = SKAction.FadeOutWithDuration(0.2);

            infoLabel1.RemoveAllActions();
            infoLabel2.RemoveAllActions();
            infoLabel3.RemoveAllActions();
            infoLabel4.RemoveAllActions();
            infoLabel5.RemoveAllActions();
            infoLabel6.RemoveAllActions();
            infoLabel7.RemoveAllActions();
            infoNode.RemoveAllActions();
            infoNode2.RemoveAllActions();
            infoNode3.RemoveAllActions();
            cancelSpark.RemoveAllActions();
            teatimeSprite.RemoveAllActions();

            infoLabel1.RunAction(actionOut);
            infoLabel2.RunAction(actionOut);
            infoLabel3.RunAction(actionOut);
            infoLabel4.RunAction(actionOut);
            infoLabel5.RunAction(actionOut);
            infoLabel6.RunAction(actionOut);
            infoLabel7.RunAction(actionOut);
            infoNode.RunAction(actionOut);
            infoNode2.RunAction(actionOut);
            infoNode3.RunAction(actionOut);
            cancelSpark.RunAction(actionOut);
            teatimeSprite.RunAction(actionOut);
        }