コード例 #1
0
        public void ReduceBasePoint(enmPropType type, int reducePoint = 1)
        {
            PropItem <int> pi = mBasePoints.GetPropItem((int)type);

            if (pi != null)
            {
                pi.SetValue(pi.GetValue() - reducePoint);
            }
        }
コード例 #2
0
        public void AddBasePoint(enmPropType type, int addPoint = 1)
        {
            PropItem <int> pi = mBasePoints.GetPropItem((int)type);

            if (pi != null)
            {
                pi.SetValue(pi.GetValue() + addPoint);
            }
        }