예제 #1
0
    void DestroyIconBar()
    {
        if (iconButtonBar != null)
        {
            iconButtonBar.FadeIn(false); // destroys after fadeout

            iconButtonBar = null;
        }
    }
예제 #2
0
    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);
    }
예제 #3
0
    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);
    }
예제 #4
0
    void DestroyIconBar()
    {
        if (iconButtonBar != null)
        {
          iconButtonBar.FadeIn(false); // destroys after fadeout

          iconButtonBar = null;
        }
    }