unity round

C#
Mathf.Round(10.2f);
Source

Also in C#: