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; } }
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; } }