예제 #1
0
    //消息的发送等
    void RequestEmticonInfo(MsgEmoticon em = 0, string message = "")
    {
        MsgGlobal gl = new MsgGlobal();

        gl.emotion_info = new MsgEmotionInfo();
        var msg = gl.emotion_info;

        msg.action_id  = PlayerInfo.Instance.mPlayerPid;
        msg.emoticonId = em;
        msg.message    = message;
        TCPNetWork.GetInstance().SendMsgToServer(ServerMsgKey.CLIENT_USE_EMOTICON, gl);
        OnCloseClick(null);
    }
예제 #2
0
    public string GetEmotcionPrefabName(MsgEmoticon emoticonId)
    {
        string tweenName = "";

        switch (emoticonId)
        {
        case MsgEmoticon.MsgEmoticonCry:    //哭
            tweenName = "daku";
            break;

        case MsgEmoticon.MsgEmoticonSnail: //蜗牛
            tweenName = "woniu";           //
            break;

        case MsgEmoticon.MsgEmoticonSorry:    //鄙视
            tweenName = "bishi";
            break;

        case MsgEmoticon.MsgEmoticonLovely:    //害羞
            tweenName = "haixiu";
            break;

        case MsgEmoticon.MsgEmoticonGood:    //大拇指
            tweenName = "damuzhi";
            break;

        case MsgEmoticon.MsgEmoticonBlack:    //黑眼镜
            tweenName = "deyi";
            break;

        case MsgEmoticon.MsgEmoticonComplain:    //奔溃
            tweenName = "bengkui";
            break;

        case MsgEmoticon.MsgEmoticonAmazed:    //惊讶
            tweenName = "jingya";
            break;

        case MsgEmoticon.MsgEmoticonShutUp:    //闭嘴
            tweenName = "bizui";
            break;

        case MsgEmoticon.MsgEmoticonSaliva:    //流口水
            tweenName = "taoxin";
            break;

        case MsgEmoticon.MsgEmoticonQuestion:    //疑问
            tweenName = "sikao";
            break;

        case MsgEmoticon.MsgEmoticonSmile:    //哈哈大笑
            tweenName = "xiao";
            break;
            //case MsgEmoticon.://喷水
            //    tweenName = "penshui";
            //    break;
            //case 14://滑稽
            //    tweenName = "huaji";
            //    break;
        }
        return("Anim" + tweenName);
    }