Add check on Photon Pun2 Support availability
This commit is contained in:
		
							parent
							
								
									38bd96aa03
								
							
						
					
					
						commit
						bbe8783455
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user