mirror of
				https://github.com/DerTyp7/defrain-shooter-unity.git
				synced 2025-11-03 22:58:59 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			418 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			418 B
		
	
	
	
		
			C#
		
	
	
	
	
	
// add this to NetworkIdentities for custom range if needed.
 | 
						|
// only works with DistanceInterestManagement.
 | 
						|
using UnityEngine;
 | 
						|
 | 
						|
namespace Mirror
 | 
						|
{
 | 
						|
    [RequireComponent(typeof(NetworkIdentity))]
 | 
						|
    [DisallowMultipleComponent]
 | 
						|
    public class DistanceInterestManagementCustomRange : MonoBehaviour
 | 
						|
    {
 | 
						|
        [Tooltip("The maximum range that objects will be visible at.")]
 | 
						|
        public int visRange = 20;
 | 
						|
    }
 | 
						|
}
 |