private void PhysicsKeyTrigger_KeyUp(object sender, EventArgs e) { ucAstronaut ucAstronaut1 = PhysicsControllerMain.ParentCanvas.FindName("ucAstronaut1") as ucAstronaut; ucAstronaut1.pathThrust.Visibility = Visibility.Collapsed; ucAstronaut1.sbThrust.Stop(); }
private void PhysicsKeyTrigger_KeyDown(object sender, EventArgs e) { ucAstronaut ucAstronaut1 = PhysicsControllerMain.ParentCanvas.FindName("ucAstronaut1") as ucAstronaut; ucAstronaut1.pathThrust.Visibility = Visibility.Visible; ucAstronaut1.sbThrust.Begin(); }