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; } }
// 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); } }
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); }
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(); }
void Start() { barButton = GameObject.Find("Bar").GetComponent <BarButton>(); gameObject.SetActive(false); }
void Start() { barButton = GetComponent <BarButton>(); isclick = false; }