You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			63 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
		
		
			
		
	
	
			63 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
| 
											2 years ago
										 | using System.Collections.Generic; | ||
|  | using UnityEngine; | ||
|  | using UnityEngine.Serialization; | ||
|  | 
 | ||
|  | namespace Game | ||
|  | { | ||
|  |     public interface ILevelMonsterWave | ||
|  |     { | ||
|  |         public float GetAttackRound(); | ||
|  |         public float GetAttackFrequency(); | ||
|  |         public int GetAttackTimes(); | ||
|  |         public int GetModuleNum(EAIModuleType type); | ||
|  |     } | ||
|  | 
 | ||
|  |     public class LevelMonsterWaveDefault : ILevelMonsterWave | ||
|  |     { | ||
|  |         public float GetAttackRound() | ||
|  |         { | ||
|  |             return 2f; | ||
|  |         } | ||
|  | 
 | ||
|  |         public float GetAttackFrequency() | ||
|  |         { | ||
|  |             return 0.2f; | ||
|  |         } | ||
|  | 
 | ||
|  |         public int GetAttackTimes() | ||
|  |         { | ||
|  |             return 5; | ||
|  |         } | ||
|  | 
 | ||
|  |         public int GetModuleNum(EAIModuleType type) | ||
|  |         { | ||
|  |             return 2; | ||
|  |         } | ||
|  |     } | ||
|  | 
 | ||
|  | 
 | ||
|  |     public partial class LevelNodeMonsterWave | ||
|  |     { | ||
|  |         public static ILevelMonsterWave Default = new LevelMonsterWaveDefault(); | ||
|  | 
 | ||
|  |         public float GetAttackRound() | ||
|  |         { | ||
|  |             return attackRound; | ||
|  |         } | ||
|  | 
 | ||
|  |         public float GetAttackFrequency() | ||
|  |         { | ||
|  |             return attackFrequency; | ||
|  |         } | ||
|  | 
 | ||
|  |         public int GetAttackTimes() | ||
|  |         { | ||
|  |             return attackTimes; | ||
|  |         } | ||
|  | 
 | ||
|  |         public int GetModuleNum(EAIModuleType type) | ||
|  |         { | ||
|  |             return _numAttackerDict[type]; | ||
|  |         } | ||
|  |     } | ||
|  | } |