进度初始化时,使用统一的更新显示的方法
This commit is contained in:
parent
aed66eb00f
commit
e736b930d1
@ -27,7 +27,7 @@ cc.Class({
|
||||
type: cc.Node
|
||||
},
|
||||
popTitles: [],
|
||||
currentVal: 1000,
|
||||
currentVal: 1024,
|
||||
margin: 170,
|
||||
pointArr: [],
|
||||
cubeArr: []
|
||||
|
@ -79,8 +79,9 @@ cc.Class({
|
||||
onLoad() {
|
||||
this.loginStatusLabel.node.active = false;
|
||||
var processBar = cc.instantiate(this.processBarPrefab);
|
||||
processBar.getComponent('progressBar').currentVal = 50000;
|
||||
// processBar.getComponent('progressBar').currentVal = 50000;
|
||||
this.part1.addChild(processBar);
|
||||
processBar.getComponent('progressBar').updateShow(50000);
|
||||
var puzzle = cc.instantiate(this.puzzlePrefab);
|
||||
this.part2.addChild(puzzle);
|
||||
var tip = cc.instantiate(this.tipPrefab);
|
||||
|
Loading…
x
Reference in New Issue
Block a user