| 123456789101112131415161718192021222324252627282930 |
- using System.Collections;
- using System.Collections.Generic;
- namespace EnemyAI
- {
- public class BehaviorController
- {
- public Blackboard blackboard;
- internal enum Behaviors {RechargeBehavior, ChaseBehavior}
- private EnemyAI.Behavior currentBehavior;
- public BehaviorController()
- {
- blackboard = new Blackboard();
- currentBehavior = new RechargeBehavior();
- }
- public void Update()
- {
- EnemyAI.Result result = currentBehavior.Run(ref blackboard);
- switch (result)
- {
-
- }
- }
- }
- }
|