cc.Class({ extends: cc.BaseClass, properties: { m_SelNode:cc.Node, }, ctor :function(){ this.m_AniArr = new Array( 'beer', 'egg', 'shot', 'kiss', 'woshou', 'rose', 'bomb', ); this.m_GameSound = new Array( ['shot', 'Audio/shot'], ['rose', 'Audio/rose'], ['egg', 'Audio/egg'], ['beer', 'Audio/beer'], ['bomb', 'Audio/bomb'], ['kiss', 'Audio/kiss'], ); }, onLoad:function () { cc.gPreLoader.LoadPrefab("FaceExAni"); //this.m_AniPool = new cc.NodePool('FaceExAniPool'); cc.gSoundRes.LoadSoundArr(this.m_GameSound, 'Chat_2'); this.m_AniPreArr = new Array(); this.m_SelNode.active = false; }, PlayAni:function (CallBack) { //����� for(var i=0;i 3000) return; var realIndex = AniIndex-2000-1; this.PlayAni(function(AniPre){ AniPre.node.setPosition( this.m_Hook.m_UserFaceArr[SendUser]); AniPre.PlayAni(this.m_AniArr[realIndex], this.m_Hook.m_UserFaceArr[TagUser]); cc.gSoundRes.PlaySound(this.m_AniArr[realIndex]); }.bind(this)); }, AniFinish:function (Js) { Js.node.active = false; }, });