예제 #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));
            }
예제 #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));
            }
예제 #3
0
 public PanelBattleInformation(GameObject obj)
     : base(obj)
 {
     Background = new GOThinSpriteBackground(obj.GetChild(0));
     Label      = new GOLabel(obj.GetChild(1));
 }