void DestroyIconBar() { if (iconButtonBar != null) { iconButtonBar.FadeIn(false); // destroys after fadeout iconButtonBar = null; } }
void ShowButtonBar() { GameObject buttonBar = Instantiate(iconButtonBarPrefab, ContentPosition(), Quaternion.identity) as GameObject; // setup callback for button bar iconButtonBar = buttonBar.GetComponent <IconButtonBar>(); iconButtonBar.clickDelegate = gameObject; iconButtonBar.clickCallback = "ButtonBarClickCallback"; iconButtonBar.FadeIn(true); }
void ShowButtonBar() { GameObject buttonBar = Instantiate(iconButtonBarPrefab, ContentPosition(), Quaternion.identity) as GameObject; // setup callback for button bar iconButtonBar = buttonBar.GetComponent<IconButtonBar>(); iconButtonBar.clickDelegate = gameObject; iconButtonBar.clickCallback = "ButtonBarClickCallback"; iconButtonBar.FadeIn(true); }