diff --git a/Editor/HumanoidFree/Configuration_Editor.cs b/Editor/HumanoidFree/Configuration_Editor.cs index 28d71b0..6298590 100644 --- a/Editor/HumanoidFree/Configuration_Editor.cs +++ b/Editor/HumanoidFree/Configuration_Editor.cs @@ -970,7 +970,7 @@ namespace Passer.Humanoid { } private static void CheckExtensionNetworking(Configuration configuration) { - if (isPhotonPun2Available) { + if (isPhotonPun2Available && isPhotonPun2SupportAvailable) { GlobalDefine("hPHOTON2"); GlobalUndefine("hPHOTON1"); //Debug.Log(isPhotonVoice2Available); @@ -1441,6 +1441,12 @@ namespace Passer.Humanoid { } } + private static bool isPhotonPun2SupportAvailable { + get { + return DoesTypeExist("Passer.Humanoid.HumanoidPlayerPunVoice"); + } + } + #endregion Support #endregion