示例#1
0
    //***************显示文本相关********************


    //显示文本
    public int ShowText(TextTaskContent theContent)
    {
        if (!isProcessorWorking)
        {
            isProcessorWorking = true;


            SetIsGlobalObjRespondMouse(false);
            theTextController.AddTaskWithCallBack(theContent, this, NormalTriggers.textFinishWork);


            return(0);
        }
        else
        {
            return(-1);
        }
    }
示例#2
0
    //显示文本,添加回调
    public int ShowTextWithCallBack(TextTaskContent theContent, TaskMessenger tcallBackMessenger, string tcallBackEvent)
    {
        if (!isProcessorWorking)
        {
            isCallBack        = true;
            callBackMessenger = tcallBackMessenger;
            callBackEvent     = tcallBackEvent;


            ShowText(theContent);


            return(0);
        }
        else
        {
            print("wrong isProcessorWorking=true");
            return(-1);
        }
    }