Ejemplo n.º 1
0
        /**********************************************************************
         *********************************************************************/
        public static void SlowDownAck(OldPipelineProtocolsACK aa, int xPos)
        {
            //stop running actions
            aa.StopAllActions();

            //define actions
            float yPos              = 15 + (65 * (28 - aa.seqnum));
            float timeToTake        = 8f;
            var   distance          = new CCPoint(80, yPos);
            var   sendPackageAction = new CCMoveTo(timeToTake, distance); //this action moves the Object to the CCPoint
            var   removeAction      = new CCRemoveSelf();                 //this action removes the object*/

            //define sequence of actions and apply to object
            var cc_seq1 = new CCSequence(sendPackageAction, removeAction);

            aa.RunAction(cc_seq1);
        }