internal override void Enter() { base.Enter(); _postLoadTimeElapsed = 0f; System.GC.Collect(); foreach (string each in additionalRequiredScenes) { _gameMode.LoadAsyncScene(each); } loadedPanelsScenes = FFUtils.BitMaskToUiScenes(panelsToLoad); FFEngine.UI.LoadPanelsSet(loadedPanelsScenes); }
public override void OnInspectorGUI() { base.OnInspectorGUI(); AGameState script = target as AGameState; LoadingState loading = script.GetComponent <LoadingState>(); if (loading != null && script != null && script != loading && !(script is ExitState)) { string[] panels = FFUtils.BitMaskToUiScenes(loading.panelsToLoad); if (panels.Length > 0) { GUI.changed = false; script.panelsToShow = EditorGUILayout.MaskField("Panels to show", script.panelsToShow, panels); if (GUI.changed) { EditorUtility.SetDirty(script); } } } }