Browse Source

飞筹码位置

master
cristianoxin 5 months ago
parent
commit
24728b5f5a
  1. 6
      assets/10001/prefab/TeenPattieGame.prefab
  2. 2
      assets/10001/src/game/logic/TeemPattieChouMaLogic.ts
  3. 2
      assets/10001/src/game/logic/TeenPattieGameBottomLogic.ts

6
assets/10001/prefab/TeenPattieGame.prefab

@ -3920,8 +3920,8 @@
},
"_lpos": {
"__type__": "cc.Vec3",
"x": 276.906,
"y": 321.788,
"x": -4.763,
"y": 17.58,
"z": 0
},
"_lrot": {
@ -5034,7 +5034,7 @@
"_lpos": {
"__type__": "cc.Vec3",
"x": 0,
"y": -31.814,
"y": -33.814,
"z": 0
},
"_lrot": {

2
assets/10001/src/game/logic/TeemPattieChouMaLogic.ts

@ -9,7 +9,7 @@ export class TeemPattieChouMaLogic extends Component{
private betCHouMa:Node;//单个筹码对象
private betCHouMaList:PlayerBetComponent[]=[]//保持桌子上的所有筹码
private posNode:Vec3[] = [v3(-192,172),v3(-270,-140),v3(25,-176),v3(492,-176),v3(469,177)];
private posNode:Vec3[] = [v3(-192,172),v3(-270,-140),v3(25,-176),v3(492,-176),v3(469,177),v3(70,216)];
onLoad(): void {
if(!this.betCHouMaList)this.betCHouMaList=[]

2
assets/10001/src/game/logic/TeenPattieGameBottomLogic.ts

@ -321,7 +321,7 @@ export class TeenPattieGameBottomLogic extends Component {
const kanpai = TeenPattieCommData.getInstance().allKanPlayerCard;
//所有弃牌或输牌玩家的ID
const qipaiId = TeenPattieCommData.getInstance().allQipaiData;
const totalPlayer = playerList.length - qipaiId.length;
const totalPlayer = kanpai.length - qipaiId.length;
if(kanpai.length > 0 || totalPlayer <= 2){
if (playerList && playerList.length) {
//玩家自己是否有牌

Loading…
Cancel
Save