Commit 5c23d243 authored by Chunchi Che's avatar Chunchi Che

update small

parent 97f54765
Pipeline #18503 passed with stages
in 3 minutes and 9 seconds
...@@ -66,13 +66,25 @@ export default (hands: Card[], scene: BABYLON.Scene) => { ...@@ -66,13 +66,25 @@ export default (hands: Card[], scene: BABYLON.Scene) => {
); );
// 监听`Hover`离开事件 // 监听`Hover`离开事件
hand.actionManager.registerAction( hand.actionManager.registerAction(
new BABYLON.SetValueAction( new BABYLON.CombineAction(
{ { trigger: BABYLON.ActionManager.OnPointerOutTrigger },
trigger: BABYLON.ActionManager.OnPointerOutTrigger, [
}, new BABYLON.SetValueAction(
hand, {
"scaling", trigger: BABYLON.ActionManager.OnPointerOutTrigger,
CONFIG.HandHoverOutScaling() },
hand,
"scaling",
CONFIG.HandHoverOutScaling()
),
// TODO: 这里后续应该加上禁用可操作按钮的处理
new BABYLON.ExecuteCodeAction(
BABYLON.ActionManager.OnPointerOutTrigger,
(event) => {
console.log(`<Hover Out>hand: ${idx}`, "event:", event);
}
),
]
) )
); );
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment