Ejemplo n.º 1
0
            public ButtonBack(GameObject obj)
                : base(obj)
            {
                Button         = obj.GetExactComponent <UIButton>();
                BoxCollider    = obj.GetExactComponent <BoxCollider>();
                OnScreenButton = obj.GetExactComponent <OnScreenButton>();

                Background = new GOThinSpriteBackground(obj.GetChild(0));
                Highlight  = new GOSprite(obj.GetChild(1));
                Icon       = new GOSprite(obj.GetChild(2));
            }
Ejemplo n.º 2
0
            public ButtonRun(GameObject obj)
                : base(obj)
            {
                UIButton[] buttons = obj.GetExactComponents <UIButton>();
                Button1     = buttons[0];
                Button2     = buttons[1];
                BoxCollider = obj.GetExactComponent <BoxCollider>();

                Background = new GOThinSpriteBackground(obj.GetChild(0));
                Highlight  = new GOSprite(obj.GetChild(1));
                Icon       = new GOSprite(obj.GetChild(2));
            }