示例#1
0
        public void Add(NumberScriptable v)
        {
            if (v is FloatScriptable)
            {
                FloatScriptable f = (FloatScriptable)v;
                value += Mathf.RoundToInt(f.value);
            }

            if (v is IntScriptable)
            {
                IntScriptable i = (IntScriptable)v;
                value += i.value;
            }
        }
示例#2
0
        public void Add(NumberScriptable v)
        {
            if (v is FloatScriptable)
            {
                FloatScriptable f = (FloatScriptable)v;
                value += f.value;
            }

            if (v is IntScriptable)
            {
                IntScriptable i = (IntScriptable)v;
                value += i.value;
            }
        }