public void OnMyDestroy(InputAction.CallbackContext context) { if (context.phase != InputActionPhase.Started) { return; } animationController.StopAnimation(); myCube.DoMyDestroy(); }