Beispiel #1
0
        void OnTouchesEnded(List <CCTouch> touches, CCEvent touchEvent)
        {
            if (touches.Count > 0)
            {
                CCTouch touch         = touches [0];
                CCPoint touchLocation = touch.Location;

                // Move particle system to touch location
                galaxySystem.StopAllActions();
                galaxySystem.RunAction(new CCMoveTo(3.0f, touchLocation));

                tunnel.RotationX = tunnel.RotationX - 90f;
                tunnel.RotationY = tunnel.RotationY - 90f;


                tunnel2.RotationX = tunnel2.RotationX - 90f;
                tunnel2.RotationY = tunnel2.RotationY - 90f;


                tunnel3.RotationX = tunnel3.RotationX - 90f;
                tunnel3.RotationY = tunnel3.RotationY - 90f;

                tunnel4.RotationX = tunnel4.RotationX - 90f;
                tunnel4.RotationY = tunnel4.RotationY - 90f;
            }
        }