/// <summary>Create a Stardart UI Button object .</summary> public GameObject Create(string name, GameObject parent) { GameObject button = CreateUIwithCRObj(name, parent); button.AddComponent<Image>(); button.AddComponent<Button>(); TextTool textTool = new TextTool(); textTool.Create(name, button); return button; }
/// <summary>Create a Stardart UI Button object .</summary> public GameObject Create(string name, GameObject parent) { GameObject button = CreateUIwithCRObj(name, parent); button.AddComponent <Image>(); button.AddComponent <Button>(); TextTool textTool = new TextTool(); textTool.Create(name, button); return(button); }