Esempio n. 1
0
        public override void PresentStep(int index, PresentationViewController presentationViewController)
        {
            switch (index)
            {
            case 0:
                break;

            case 1:             //punch
                Hero.AddAnimation(Attack, new NSString("attack"));
                AnimationStartTime = CAAnimation.CurrentMediaTime();
                break;

            case 2:            //add target
                MoveTarget(0);
                break;

            case 3:            //punch
                Hero.AddAnimation(Attack, new NSString("attack"));
                AnimationStartTime = CAAnimation.CurrentMediaTime();
                break;

            case 4:            //punch + IK
                IkActive = true;
                LookAt.InfluenceFactor = 1;
                Hero.AddAnimation(Attack, new NSString("attack"));
                AnimationStartTime = CAAnimation.CurrentMediaTime();
                break;

            case 5:            //punch
                MoveTarget(1);
                break;

            case 6:            //punch
                IkActive = true;
                Hero.AddAnimation(Attack, new NSString("attack"));
                AnimationStartTime = CAAnimation.CurrentMediaTime();
                break;

            case 7:            //punch
                MoveTarget(2);
                break;

            case 8:            //punch
                IkActive = true;
                Hero.AddAnimation(Attack, new NSString("attack"));
                AnimationStartTime = CAAnimation.CurrentMediaTime();
                break;
            }
        }