Exemple #1
0
    IEnumerator ResetInterator()
    {
        //lz-2016.06.07:Invoke方法会受TimeScale影响,而在游戏中,打开系统菜单的时候TimeScale会被调整为0,暂停游戏,所有这里改为协程,不受TimeScale影响
        float startTime = Time.realtimeSinceStartup;

        while (Time.realtimeSinceStartup - startTime < 0.2f)
        {
            yield return(null);
        }
        PeInput.ResetSetting();
        mKeySettingLists[0] = null;
        mKeySettingLists[1] = null;
        mKeySettingLists[2] = null;
        mKeySettingLists[3] = null;
        ResetkeySetting();

        if (UIMenuList.Instance != null)
        {
            UIMenuList.Instance.RefreshHotKeyName();
        }
    }