Beispiel #1
0
        /// <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;
        }
Beispiel #2
0
        /// <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);
        }