Ejemplo n.º 1
0
    protected override void OnViewHide()
    {
        StopAllCoroutines();

        // allow update next time
        m_UpdatingJackpot = false;

        GuiBaseUtils.RegisterButtonDelegate(Layout, CLOSE_BUTTON, null, null);
        GuiBaseUtils.RegisterButtonDelegate(Layout, SPIN_BUTTON, null, null);
        GuiBaseUtils.RegisterButtonDelegate(Layout, BUYCHIPS_BUTTON, null, null);

        m_SlotMachine.Deactivate();

        GuiMenu menu = Owner as GuiMenu;

        if (menu != null)
        {
            menu.SetOverlaysVisible(true);
            menu.SetBackgroundVisibility(true);
        }

        base.OnViewHide();
    }