Beispiel #1
0
    void Update()
    {
        if (!m_bInitialized)
        {
            return;
        }

        SteamAPI.RunCallbacks();

        if (Input.GetKeyDown(KeyCode.Escape))
        {
            Application.Quit();
        }
        else if (Input.GetKeyDown(KeyCode.Space) || Input.GetKeyDown(KeyCode.RightArrow))
        {
            ++m_State;
            if (m_State == EGUIState.MAX_STATES)
            {
                m_State = (EGUIState)0;
            }
        }
        else if (Input.GetKeyDown(KeyCode.LeftArrow))
        {
            --m_State;
            if (m_State == (EGUIState)(-1))
            {
                m_State = EGUIState.MAX_STATES - 1;
            }
        }
    }
	void Update() {
		if (!m_bInitialized) {
			return;
		}

		SteamAPI.RunCallbacks();

		if (Input.GetKeyDown(KeyCode.Escape)) {
			Application.Quit();
		}
		else if (Input.GetKeyDown(KeyCode.Space) || Input.GetKeyDown(KeyCode.RightArrow)) {
			++m_State;
			if (m_State == EGUIState.MAX_STATES)
				m_State = EGUIState.SteamAppList;
		}
		else if (Input.GetKeyDown(KeyCode.LeftArrow)) {
			--m_State;
			if (m_State == (EGUIState)(-1))
				m_State = EGUIState.MAX_STATES - 1;
		}
	}