示例#1
0
    public override void    AddSP(int sp)
    {
        base.AddSP(sp);
        if (sp > 0)
        {
            Bubble.AddSp(sp, Vector3.zero, true);
        }

        int           iCurrentSP = (int)Property["SP"];
        sdUICharacter uiChar     = sdUICharacter.Instance;

        if (uiChar != null)
        {
            Hashtable hpDesc = new Hashtable();
            hpDesc["value"] = iCurrentSP > 0 ? iCurrentSP : 0;
            hpDesc["des"]   = "";
            uiChar.SetProperty("SP", hpDesc);

            Hashtable maxHpDesc = new Hashtable();
            maxHpDesc["value"] = Property["MaxSP"];
            maxHpDesc["des"]   = "";
            uiChar.SetProperty("MaxSP", maxHpDesc);
        }
    }