This commit is contained in:
SoulliesOfficial
2025-10-23 00:49:44 -04:00
parent 9b1b5ca93f
commit 61a397dd4c
9846 changed files with 2618439 additions and 793547 deletions

View File

@@ -34,12 +34,19 @@ namespace MoreMountains.FeedbacksForThirdParty
if (activeProfile != null)
{
string[] currentDefines = activeProfile.scriptingDefines;
if (!Array.Exists(currentDefines, define => define == Symbols[0]))
var symbols = PlayerSettings.GetScriptingDefineSymbols(
UnityEditor.Build.NamedBuildTarget.FromBuildTargetGroup(EditorUserBuildSettings
.selectedBuildTargetGroup));
if (!symbols.Contains("MOREMOUNTAINS_NICEVIBRATIONS_INSTALLED"))
{
var updatedDefines = new List<string>(currentDefines);
updatedDefines.Add(Symbols[0]);
activeProfile.scriptingDefines = updatedDefines.ToArray();
string[] currentDefines = activeProfile.scriptingDefines;
if (!Array.Exists(currentDefines, define => define == Symbols[0]))
{
var updatedDefines = new List<string>(currentDefines);
updatedDefines.Add(Symbols[0]);
activeProfile.scriptingDefines = updatedDefines.ToArray();
}
}
}
else