BehaviorController.cs 500 B

1234567891011121314151617181920212223
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. namespace EnemyAI
  4. {
  5. public class BehaviorController
  6. {
  7. public Blackboard blackboard;
  8. private EnemyAI.Behavior currentBehavior;
  9. public BehaviorController()
  10. {
  11. blackboard = new Blackboard();
  12. currentBehavior = new RechargeBehavior();
  13. }
  14. public void Update()
  15. {
  16. EnemyAI.Result result = currentBehavior.Run(ref blackboard);
  17. }
  18. }
  19. }