| 1234567891011121314151617181920212223 |
- using System.Collections;
- using System.Collections.Generic;
- namespace EnemyAI
- {
- public class BehaviorController
- {
- public Blackboard blackboard;
- private EnemyAI.Behavior currentBehavior;
- public BehaviorController()
- {
- blackboard = new Blackboard();
- currentBehavior = new RechargeBehavior();
- }
- public void Update()
- {
- EnemyAI.Result result = currentBehavior.Run(ref blackboard);
- }
- }
- }
|