示例#1
0
    public override void use(PlayerInput usedBy = PlayerInput.None)
    {
        m_Camera.changeMenu(NextMenu);
        NextMenu.LastMenu       = ParentMenu;
        ParentMenu.IsActiveMenu = false;
        NextMenu.IsActiveMenu   = true;

        if (i_PassInputToNextMenu)
        {
            if (usedBy == PlayerInput.None)
            {
                return;
            }

            if (usedBy == PlayerInput.Count)
            {
                return;
            }

            if (usedBy == PlayerInput.All)
            {
                return;
            }

            NextMenu.setInputsToRead((int)usedBy);
        }
    }
示例#2
0
 protected virtual void back()
 {
     if (InputManager.getMenuBackDown(m_ReadInputFrom)) // check if "B" was hit
     {
         if (m_LastMenu != null)
         {
             m_Camera.changeMenu(m_LastMenu);
             m_IsActiveMenu = false;
             m_LastMenu.IsActiveMenu = true;
             m_LastMenu = null;
         }
     }
 }