mirror of
https://github.com/genxium/DelayNoMore
synced 2024-12-26 03:39:00 +00:00
Minor fix.
This commit is contained in:
parent
efd070a11b
commit
d623916b3c
@ -2895,7 +2895,17 @@
|
||||
"__id__": 73
|
||||
},
|
||||
"mapNode": null,
|
||||
"characterSelectCells": [],
|
||||
"characterSelectCells": [
|
||||
{
|
||||
"__id__": 6
|
||||
},
|
||||
{
|
||||
"__id__": 26
|
||||
},
|
||||
{
|
||||
"__id__": 46
|
||||
}
|
||||
],
|
||||
"_id": ""
|
||||
},
|
||||
{
|
||||
|
@ -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
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user