void Awake() { _self = this; DontDestroyOnLoad (gameObject); #region Appilcation settings Application.targetFrameRate = 60; #endregion Application settings // 初始化字典管理器 XLDictionaryMgr.getInstance(); #if false string text = null; text = BbbDictionary.SS0; text = AaaDictionary.TEST0; text = XLDictionaryMgr.getInstance().getTextById(10001); int a = 0; a++; #endif #region Runtime setup StatesInit (); ExternalResources.Instance.CrExe = this; Cameras = GetComponent<CameraControl> (); #if DEBUG gameObject.AddComponent<XLFpsDebug> (); #endif InitUI (); #endregion Runtime setup StateController.Start (GameState.PreProcess); StateController.Condition ((uint)GameState.Init); StateController.Condition ((uint)GameState.Login); StateController.Condition ((uint)GameState.Notice); StateController.Condition ((uint)GameState.MainMenu); }