18 lines
		
	
	
		
			369 B
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			369 B
		
	
	
	
		
			C#
		
	
	
	
|  | using System.Collections; | |||
|  | using System.Collections.Generic; | |||
|  | using UnityEngine; | |||
|  | 
 | |||
|  | /// <summary> | |||
|  | /// <20><><EFBFBD>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD><EFBFBD> | |||
|  | /// </summary> | |||
|  | public class ProbabilityManager : SingletonManager<ProbabilityManager> | |||
|  | { | |||
|  |     /// <summary> | |||
|  |     /// <20>ٷ<EFBFBD>֮60<36><30><EFBFBD><EFBFBD> | |||
|  |     /// </summary> | |||
|  |     public bool GetPercent(int value) | |||
|  |     { | |||
|  |         return Random.Range(0, 100) < value; | |||
|  |     } | |||
|  | } |