예제 #1
0
        public void MakeDecision(Brain brain)
        {
            bool ret = root.Do(brain);

            Debug.Log("tree ret = " + ret);
        }
예제 #2
0
 public abstract BattleAction TryCreateAction(Brain brain);
예제 #3
0
 public void InitWithBrain(Brain brain)
 {
     // 对brain对数据 添加监听
     // 需要解决对问题: 先创建strategy 后在brain中添加relation 这些事件如何绑定
 }
예제 #4
0
 public abstract bool Do(Brain brain);
예제 #5
0
 public abstract BattleFieldEvent TryCreateAction(Brain brain);
예제 #6
0
 public abstract bool JudgeCondition(Brain brain);
예제 #7
0
 public void OnExit(Brain brain)
 {
 }
예제 #8
0
 public void OnEnter(Brain brain)
 {
 }
예제 #9
0
 public void OnUpdate(Brain brain)
 {
     decisionTree.MakeDecision(brain);
 }
예제 #10
0
 public override bool Do(Brain brain)
 {
     return(conditionDescriptor.JudgeCondition(brain));
 }
예제 #11
0
 public override BattleFieldEvent TryCreateAction(Brain brain)
 {
     return(null);
 }