void ReleaseDesignerOutlets()
        {
            if (BarButton != null)
            {
                BarButton.Dispose();
                BarButton = null;
            }

            if (CircleButton != null)
            {
                CircleButton.Dispose();
                CircleButton = null;
            }

            if (lblMy != null)
            {
                lblMy.Dispose();
                lblMy = null;
            }

            if (MainView != null)
            {
                MainView.Dispose();
                MainView = null;
            }

            if (SimpleButton != null)
            {
                SimpleButton.Dispose();
                SimpleButton = null;
            }
        }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     tiles     = GameObject.FindGameObjectsWithTag("floor");
     barButton = GameObject.Find("Bar").GetComponent <BarButton>();
     ColorPan  = GameObject.FindGameObjectWithTag("Color");
     RotateBtn.SetActive(false);
 }
 public void UpdateButtonImage(UIImage image)
 {
     if (BarButton != null)
     {
         BarButton.SetImage(image, UIControlState.Normal);
     }
 }
示例#4
0
    private void Start()
    {
        barButton = GameObject.Find("Bar").GetComponent <BarButton>();
        mapSize.x = 10;
        mapSize.y = 10;

        GenerateMap();
    }
        public IBarButton InsertButton(int index, string caption, EventHandler clickHandler)
        {
            BarButton item = new BarButton();

            item.Text   = caption;
            item.Click += clickHandler;
            Insert(index, item);
            return(item);
        }
示例#6
0
 public ButtonBarControl(BarButton barItem) : base(barItem)
 {
     this.PropertyChanged += this.OnPropertyChanged;
     this.InitializeComponent();
     this.BarItem.PropertyChanged += (sender, args) =>
     {
         this.OnPropertyChanged(nameof(this.ButtonResource));
     };
 }
 public ButtonBarControl(BarButton barItem) : base(barItem)
 {
     this.PropertyChanged += this.OnPropertyChanged;
     this.InitializeComponent();
 }
示例#8
0
 void Start()
 {
     barButton = GameObject.Find("Bar").GetComponent <BarButton>();
     gameObject.SetActive(false);
 }
示例#9
0
 void Start()
 {
     barButton = GetComponent <BarButton>();
     isclick   = false;
 }