Ejemplo n.º 1
0
    private wuling theWuling = null;     //没有必要每一次都获取五灵引用

    public void setWuling(wulingType theType)
    {
        theEypeNow = theType;
        lingBasic yinWuling  = null;
        lingBasic YangWuling = null;

        if (!theWuling)
        {
            theWuling = systemValues.thePlayer.GetComponent <wuling> ();
        }

        for (int i = 0; i < theWuling.lingEffects.Count; i++)
        {
            if (theWuling.lingEffects [i].theType == theEypeNow && theWuling.lingEffects [i].getYinYagType() == 1)
            {
                YangWuling = theWuling.lingEffects [i];
            }
            if (theWuling.lingEffects [i].theType == theEypeNow && theWuling.lingEffects [i].getYinYagType() == 2)
            {
                yinWuling = theWuling.lingEffects [i];
            }
        }
        theYangButton.setLing(YangWuling);
        theYinButton.setLing(yinWuling);
    }
Ejemplo n.º 2
0
    //初次学成信息
    public void getLearnedOverGetInformation()
    {
        try
        {
            if (!theWuling)
            {
                theWuling = systemValues.thePlayer.GetComponent <wuling> ();
            }

            string information = "";
            for (int i = 0; i < theWuling.lingEffects.Count; i++)
            {
                information += theWuling.lingEffects [i].lingName + " " + theWuling.lingEffects [i].wulingInformationForLearnOver();
                if (theWuling.lingEffects [i].isLearned())
                {
                    information += "【已获得】";
                }
                information += "\n";
            }
            systemValues.messageBoxShow("初成奖励", information, true);
        }
        catch
        {
            systemValues.messageBoxShow("出错", "暂时无法查询得到五灵初成奖励信息", false);
            print("暂时无法查询得到五灵初成奖励信息");             //顺带用输出在控制台定位一下这个错误
        }
    }
Ejemplo n.º 3
0
    //私有分类方法
    private string getInfromationFromPlayer(wulingType thetype)
    {
        if (!theText)
        {
            //print ("There is no system text");
            return("");
        }
        string theinformation = "";

        if (!systemValues.thePlayer)
        {
            //print ("There is no system Player");
            return(theinformation);
        }
        if (!theWuling)
        {
            theWuling = systemValues.thePlayer.GetComponent <wuling> ();
        }
        if (!theWuling)
        {
            //print ("There is no wuling effect");
            return(theinformation);
        }

        for (int i = 0; i < theWuling.lingEffects.Count; i++)
        {
            if (theWuling.lingEffects [i].theType == thetype)
            {
                string information = "【" + theWuling.lingEffects [i].lingName + "  " + theWuling.lingEffects [i].lingEffectName + "】\n" + theWuling.lingEffects [i].wulingInformation() + "\n";
                if (theWuling.lingEffects [i].isLearned())
                {
                    theinformation += systemValues.BESkillColor + information + systemValues.colorEnd;
                }
                else
                {
                    theinformation += information;
                }
                theinformation += "\n";
            }
        }
        return(theinformation);
    }