You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.6 KiB
50 lines
1.6 KiB
import User from "../../FrameWork/User/User";
|
|
import Common5 from "../../Platform/th/Common5";
|
|
import GameBaseScript from "../GameRoomRes/GameBaseScript";
|
|
import TaskManager, { MainTaskIdEnum } from "../JuQingChat/TaskManager";
|
|
import UserManager from "../Manager/UserManager";
|
|
import NewGuideScript from "../NewGuide/NewGuideScript";
|
|
import PrefabManage, { GameType } from "../PrefabManager/PrefabManage";
|
|
import GetAward from "../SCommon/GetAward";
|
|
import DHBase from "./DHBase";
|
|
const { ccclass, property, disallowMultiple, menu } = cc._decorator;
|
|
|
|
@ccclass
|
|
@disallowMultiple()
|
|
@menu('对话剧情/ShouGouHeTong')
|
|
export default class ShouGouHeTong extends DHBase {
|
|
@property(cc.Label)
|
|
m_money: cc.Label = null
|
|
@property(sp.Skeleton)
|
|
m_gaizhang: sp.Skeleton = null
|
|
|
|
|
|
start() {
|
|
|
|
}
|
|
|
|
init(money) {
|
|
this.m_money.string = `${Common5.getNumberChangeHanzi(money)}`
|
|
}
|
|
|
|
onTouchGaiZhang(event) {
|
|
event.target.active = false
|
|
this.m_gaizhang.node.active = true
|
|
this.m_gaizhang.setAnimation(0, "盖章", false)
|
|
this.scheduleOnce(() => {
|
|
let mainTaskInfo: any = TaskManager.getCurUnLockMainTaskInfo()
|
|
let mainId = mainTaskInfo.Id
|
|
if (mainId == MainTaskIdEnum.MainTask_524) {
|
|
TaskManager.finishCurMainTask(MainTaskIdEnum.MainTask_524)
|
|
TaskManager.setCurTask(MainTaskIdEnum.MainTask_525)
|
|
}
|
|
this.node.removeFromParent()
|
|
this.node.destroy()
|
|
}, 2)
|
|
}
|
|
|
|
onTouchClose() {
|
|
this.node.removeFromParent()
|
|
this.node.destroy()
|
|
}
|
|
}
|
|
|