how to add a gameobject

C#
/// <summary>
/// Creates a new Gameobject called Name_1
/// </summary>
public void AddGameObject()
{
	GameObject testObject = new GameObject("Name_1");
}
Source

Also in C#: