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

update small

parent 97f54765
...@@ -66,6 +66,9 @@ export default (hands: Card[], scene: BABYLON.Scene) => { ...@@ -66,6 +66,9 @@ export default (hands: Card[], scene: BABYLON.Scene) => {
); );
// 监听`Hover`离开事件 // 监听`Hover`离开事件
hand.actionManager.registerAction( hand.actionManager.registerAction(
new BABYLON.CombineAction(
{ trigger: BABYLON.ActionManager.OnPointerOutTrigger },
[
new BABYLON.SetValueAction( new BABYLON.SetValueAction(
{ {
trigger: BABYLON.ActionManager.OnPointerOutTrigger, trigger: BABYLON.ActionManager.OnPointerOutTrigger,
...@@ -73,6 +76,15 @@ export default (hands: Card[], scene: BABYLON.Scene) => { ...@@ -73,6 +76,15 @@ export default (hands: Card[], scene: BABYLON.Scene) => {
hand, hand,
"scaling", "scaling",
CONFIG.HandHoverOutScaling() 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