This commit is contained in:
guoqing.zhu 2022-06-07 13:14:57 +08:00
parent e2b989e7f1
commit a941f317bc
4 changed files with 495 additions and 6 deletions

File diff suppressed because it is too large Load Diff

View File

@ -37,8 +37,8 @@ export class guns_single extends cc.Component {
if (data.lock_type == 3) {
this.showWanted();
this.wantedNode.getComponentInChildren(cc.Label).string =
this.formatSeconds(lefttime);
// this.wantedNode.getComponentInChildren(cc.Label).string =
// this.formatSeconds(lefttime);
this.schedule(function () {
this.wantedNode.getComponentInChildren(cc.Label).string =
this.formatSeconds(lefttime);

View File

@ -66,8 +66,8 @@ cc.Class({
if (v.lock_type == 3) {
this.showWanted();
this.wantedNode.getComponentInChildren(cc.Label).string =
this.formatSeconds(lefttime);
// this.wantedNode.getComponentInChildren(cc.Label).string =
// this.formatSeconds(lefttime);
this.schedule(function () {
this.wantedNode.getComponentInChildren(cc.Label).string =
this.formatSeconds(lefttime);

View File

@ -71,6 +71,7 @@ cc.Class({
if (this.missionState == 0) {
NetManage.commitMission(this.missionId, () => {
cc.uiHelper.showTips('Get Reward Success!');
cc.Notifier.emit('ReFreshMission');
});
}
if (this.missionState == 1) {
@ -151,13 +152,21 @@ cc.Class({
this.boostCost = data.boost;
console.log(JSON.stringify(originData));
this.wantedData = data;
this.missionId = originData.mission_id;
this.missionState = originData.state;
if (originData.state == 0) {
//can revice
this.receiveNode.active = true;
this.missionState = 0;
}
if (originData.state == 1) {
// has get
this.getNode.active = true;
}
if (originData.state == 2) {
// doing
if (originData.objects.length == 0) {
this.getNode.active = true;
this.missionState = 1;