1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- import BaseEvent from "../fight/evnet/base/BaseEvent";
- const { ccclass, property } = cc._decorator;
- @ccclass
- export default class JG0111_2 extends BaseEvent {
- @property(cc.Node)
- mPet: cc.Node = null;
- @property(cc.Prefab)
- mMapDialog: cc.Prefab = null;
- @property({
- displayName: '对话内容',
- type: [cc.String]
- })
- text: Array<string> = [];
- public isOver = false
-
- public onBegin(tag: number) {
- if(this.isOver){
- return
- }
- this.isOver = true
- this.pause()
- this.moveCamera(this.mPet.getPosition(),0.7,()=>{
- this.showDialog(this.mPet,this.text,()=>{
- this.node.destroy()
- this.resume()
- })
- })
- }
-
- }
|