Commit 447b4f89 authored by Chunchi Che's avatar Chunchi Che

update simpleDuel hands

parent 0b6eeba7
......@@ -21,8 +21,11 @@ export default (hands: CardMeta[], scene: BABYLON.Scene) => {
);
// 材质
const handMaterial = new BABYLON.StandardMaterial("handMaterial", scene);
// 材质颜色
handMaterial.diffuseColor = CONFIG.HandColor();
// 材质贴纸
handMaterial.diffuseTexture = new BABYLON.Texture(
`https://cdn02.moecube.com:444/images/ygopro-images-zh-CN/${item.id}.jpg`,
scene
);
hand.material = handMaterial;
// 事件管理
hand.actionManager = new BABYLON.ActionManager(scene);
......
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