Ejemplo n.º 1
0
 private bool Setup()
 {
     if (_uiBackground == null)
     {
         Util.FindParentToChild(ref _uiBackground, base.transform, "Background");
     }
     if (_uiShipBanner == null)
     {
         Util.FindParentToChild(ref _uiShipBanner, base.transform, "Banner");
     }
     if (_uiFleetNum == null)
     {
         Util.FindParentToChild(ref _uiFleetNum, base.transform, "FleetNum");
     }
     if (_uiLabel == null)
     {
         Util.FindParentToChild(ref _uiLabel, base.transform, "Label");
     }
     if (button == null)
     {
         GetComponent <UIButton>();
     }
     _uiShipBanner.localSize = ResourceManager.SHIP_TEXTURE_SIZE[1];
     _uiButton.onClick       = Util.CreateEventDelegateList(this, "Decide", null);
     _clsDelta.Init();
     return(true);
 }