コード例 #1
0
        private void Awake()
        {
            //IL_0093: Unknown result type (might be due to invalid IL or missing references)
            //IL_009d: Expected O, but got Unknown
            //IL_00ab: Unknown result type (might be due to invalid IL or missing references)
            //IL_00b5: Expected O, but got Unknown
            //IL_00c6: Unknown result type (might be due to invalid IL or missing references)
            //IL_00d0: Expected O, but got Unknown
            //IL_00de: Unknown result type (might be due to invalid IL or missing references)
            //IL_00e8: Expected O, but got Unknown
            string text = "START version: 0.1.0.6045 " + DateTime.Now.ToShortDateString();

            Log.Info(text + "\n" + new string('-', 35 + text.Length), 40, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\Main.cs");
            Device.LogInfo();
            Object.DontDestroyOnLoad(this.get_gameObject());
            PlayerPreferences.Load();
            ApplicationConfig.Read();
            QualityManager.Load();
            if (PlayerPreferences.graphicPresetIndex == -1)
            {
                PlayerPreferences.graphicPresetIndex = QualityManager.GetQualityPresetIndex();
                PlayerPreferences.Save();
            }
            QualityManager.SetQualityPresetIndex(PlayerPreferences.graphicPresetIndex);
            monoBehaviour = this;
            StateManager.RegisterInputDefinition(new InputKeyCodeDefinition(27, 1, 0, 0.4f, 0.1f));
            StateManager.RegisterInputDefinition(new InputKeyCodeDefinition(13, 2, 0, 0.4f, 0.1f));
            StateManager.RegisterInputDefinition(new InputKeyCodeDefinition(271, 3, 0, 0.4f, 0.1f));
            StateManager.RegisterInputDefinition(new InputKeyCodeDefinition(9, 4, 0, 0.4f, 0.1f));
        }
コード例 #2
0
 protected unsafe void OnEnable()
 {
     //IL_016e: Unknown result type (might be due to invalid IL or missing references)
     //IL_0178: Expected O, but got Unknown
     //IL_01a6: Unknown result type (might be due to invalid IL or missing references)
     //IL_01b0: Expected O, but got Unknown
     m_graphicPresetDropdown.value = QualityManager.GetQualityPresetIndex();
     ScreenManager.UpdateDisplayInformation();
     UpdateResolutionData();
     m_fullScreenDropdown.value = ((!Device.fullScreen) ? 1 : 0);
     m_fullScreenDropdown.RefreshShownValue();
     m_displayDropdown.get_transform().get_parent().get_parent()
     .get_gameObject()
     .SetActive(Device.fullScreen);
     m_defaultResolutionButton.get_transform().get_parent().get_gameObject()
     .SetActive(Device.fullScreen);
     UpdateDisplayList();
     UpdateRatioList();
     UpdateResolutionList();
     m_currentFullScreenDropDownIndex    = m_fullScreenDropdown.value;
     m_currentDisplayDropDownIndex       = m_displayDropdown.value;
     m_currentRatioDropDownIndex         = m_ratioDropdown.value;
     m_currentResolutionDropDownIndex    = m_resolutionDropdown.value;
     m_currentGraphicPresetDropDownIndex = m_graphicPresetDropdown.value;
     UpdateDefaultResolutionButton();
     m_fullScreenDropdown.onValueChanged.AddListener(new UnityAction <int>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     m_displayDropdown.onValueChanged.AddListener(new UnityAction <int>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     m_ratioDropdown.onValueChanged.AddListener(new UnityAction <int>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     m_resolutionDropdown.onValueChanged.AddListener(new UnityAction <int>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     m_defaultResolutionButton.get_onClick().AddListener(new UnityAction((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     m_graphicPresetDropdown.onValueChanged.AddListener(new UnityAction <int>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     m_applyButton.get_onClick().AddListener(new UnityAction((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/));
     UpdateApplyButton();
 }