Minor fix.

This commit is contained in:
genxium 2023-02-12 22:10:42 +08:00
parent efd070a11b
commit d623916b3c
4 changed files with 17 additions and 7 deletions

View File

@ -2895,7 +2895,17 @@
"__id__": 73
},
"mapNode": null,
"characterSelectCells": [],
"characterSelectCells": [
{
"__id__": 6
},
{
"__id__": 26
},
{
"__id__": 46
}
],
"_id": ""
},
{

View File

@ -25,13 +25,13 @@ cc.Class({
this.modeButton.clickEvents.push(modeBtnClickEventHandler);
},
onSpeciesSelected(val) {
onSpeciesSelected(evt, val) {
for (let cell of this.characterSelectCells) {
const comp = cell.getComponent("CharacterSelectCell");
if (cell.speciesId != val) {
cell.chosenFlag.active = false;
if (comp.speciesId != val) {
comp.chosenFlag.node.active = false;
} else {
cell.chosenFlag.active = true;
comp.chosenFlag.node.active = true;
}
}
},

File diff suppressed because one or more lines are too long

View File

@ -22,7 +22,7 @@ const (
GRAVITY_X = int32(0)
GRAVITY_Y = -int32(float64(0.5) * WORLD_TO_VIRTUAL_GRID_RATIO) // makes all "playerCollider.Y" a multiple of 0.5 in all cases
INPUT_DELAY_FRAMES = int32(6) // in the count of render frames
INPUT_DELAY_FRAMES = int32(5) // in the count of render frames
/*
[WARNING]