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.
		
		
		
		
		
			
		
			
				
	
	
		
			34 lines
		
	
	
		
			744 B
		
	
	
	
		
			C#
		
	
			
		
		
	
	
			34 lines
		
	
	
		
			744 B
		
	
	
	
		
			C#
		
	
| using System;
 | |
| using System.Collections.Generic;
 | |
| using CleverCrow.Fluid.BTs.Trees;
 | |
| using UnityEngine;
 | |
| using UnityEngine.Timeline;
 | |
| 
 | |
| namespace Game
 | |
| {
 | |
|     public interface IAIDirector
 | |
|     {
 | |
|         void Reset();
 | |
|     }
 | |
| 
 | |
|     public partial class AIDirectorBase<T> : AIObjectBase<T>, IAIDirector where T : new()
 | |
|     {
 | |
|         private float _attackRoundTime;
 | |
|         private float _attackWaitTime;
 | |
|         private int _attackTimes;
 | |
|         private List<int> _allEnemies = new List<int>();
 | |
| 
 | |
|         public void Reset()
 | |
|         {
 | |
|             _tree.Reset();
 | |
|             ResetAttack();
 | |
|         }
 | |
| 
 | |
|         private void ResetAttack()
 | |
|         {
 | |
|             _attackRoundTime = 0;
 | |
|             _attackWaitTime = 0;
 | |
|             _attackTimes = 0;
 | |
|         }
 | |
|     }
 | |
| } |