From bbe878345515ed38dc681fad327503ebfa7abb0a Mon Sep 17 00:00:00 2001 From: Pascal Serrarens Date: Wed, 26 Jan 2022 17:07:34 +0100 Subject: [PATCH] Add check on Photon Pun2 Support availability --- Editor/HumanoidFree/Configuration_Editor.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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