Add check on Photon Pun2 Support availability

This commit is contained in:
Pascal Serrarens 2022-01-26 17:07:34 +01:00
parent 38bd96aa03
commit bbe8783455

View File

@ -970,7 +970,7 @@ namespace Passer.Humanoid {
} }
private static void CheckExtensionNetworking(Configuration configuration) { private static void CheckExtensionNetworking(Configuration configuration) {
if (isPhotonPun2Available) { if (isPhotonPun2Available && isPhotonPun2SupportAvailable) {
GlobalDefine("hPHOTON2"); GlobalDefine("hPHOTON2");
GlobalUndefine("hPHOTON1"); GlobalUndefine("hPHOTON1");
//Debug.Log(isPhotonVoice2Available); //Debug.Log(isPhotonVoice2Available);
@ -1441,6 +1441,12 @@ namespace Passer.Humanoid {
} }
} }
private static bool isPhotonPun2SupportAvailable {
get {
return DoesTypeExist("Passer.Humanoid.HumanoidPlayerPunVoice");
}
}
#endregion Support #endregion Support
#endregion #endregion