var SDKManage = require("SDKManage") var NetManage = require("NetManage") var playerData = require("playerData") var gameConfig = require("gameConfig") var Main = require("Main"); cc.Class({ extends: cc.Component, properties: { sp_emote: { default: null, type: cc.Sprite, }, }, // LIFE-CYCLE CALLBACKS: // onLoad () {}, start () { }, showChatEmote(icon){ this.icon = icon this.sp_emote.spriteFrame = cc.uiChat.emoteatlas.getSpriteFrame(icon) }, clickemote(){ cc.Notifier.emit('clickemote', this.icon) }, // update (dt) {}, });