Exemplo n.º 1
0
        private void PhysicsKeyTrigger_KeyUp(object sender, EventArgs e)
        {
            ucAstronaut ucAstronaut1 = PhysicsControllerMain.ParentCanvas.FindName("ucAstronaut1") as ucAstronaut;

            ucAstronaut1.pathThrust.Visibility = Visibility.Collapsed;
            ucAstronaut1.sbThrust.Stop();
        }
Exemplo n.º 2
0
        private void PhysicsKeyTrigger_KeyDown(object sender, EventArgs e)
        {
            ucAstronaut ucAstronaut1 = PhysicsControllerMain.ParentCanvas.FindName("ucAstronaut1") as ucAstronaut;

            ucAstronaut1.pathThrust.Visibility = Visibility.Visible;
            ucAstronaut1.sbThrust.Begin();
        }