Commit 7bc3c31b authored by Chunchi Che's avatar Chunchi Che

update monster ui

parent 34ee3852
...@@ -84,7 +84,9 @@ export const clearMonsterSelectInfoImpl: CaseReducer< ...@@ -84,7 +84,9 @@ export const clearMonsterSelectInfoImpl: CaseReducer<
: state.opMonsters; : state.opMonsters;
if (monsters) { if (monsters) {
monsters.monsters = []; for (const monster of monsters.monsters) {
monster.selectInfo = undefined;
}
} }
}; };
......
...@@ -72,7 +72,7 @@ const CommonMonster = (props: { state: Monster }) => { ...@@ -72,7 +72,7 @@ const CommonMonster = (props: { state: Monster }) => {
) )
: new BABYLON.Texture(`http://localhost:3030/images/card_slot.png`) : new BABYLON.Texture(`http://localhost:3030/images/card_slot.png`)
} }
alpha={0.2} alpha={props.state.occupant ? 1 : 0}
></standardMaterial> ></standardMaterial>
</plane> </plane>
); );
......
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