void OnGUI() { GUILayout.Label("Create Asset Bundle"); GUILayout.TextArea(infoText); GUILayout.Space(8); if (string.IsNullOrEmpty(bundleName)) { bundleName = PlayerSettings.productName; } if (string.IsNullOrEmpty(bundleVariant)) { bundleVariant = PlayerSettings.bundleVersion; } bundleName = EditorGUILayout.TextField("Bundle Name", bundleName); bundleVariant = EditorGUILayout.TextField("Bundle Variant", bundleVariant); //if (GUILayout.Button("Asset Bundle")) { // BuildAllAssetBundles(); //} if (GUILayout.Button("Unity Package")) { CreateUnityPackage(); } if (shallowBuild) { if (GUILayout.Button("Create Config")) { ElevenConfig.GetEditorProjectConfig("Shallow Games", "Assets/ElevenEleven/Resources"); } if (GUILayout.Button("Import All Game Configs")) { ElevenConfig.UpdateProjectFromGames(); } bool partyBuild = false; bool newValue = GUILayout.Toggle(partyBuild, "Party Build?"); if (partyBuild != newValue) { if (newValue) { } else { } } } }
public static void NewGame(ElevenConfig currentGame) { Reset(); foreach (var playerID in PlayerManager.players.Keys) { if (!scores.ContainsKey(playerID)) { scores.Add(playerID, new PlayerScore(playerID)); } } Config.Instance.activeGame = currentGame; SceneLoader.Instance.Load(currentGame.mainGameScene, false); }