Ejemplo n.º 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;
            }
        }
Ejemplo n.º 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;
            }
        }