unity change tag in script

C#
gameObject.tag = "NewTagName"
Source

Also in C#: