|
@@ -2,15 +2,24 @@
|
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
|
using UnityEngine;
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
-public class Enemy : MonoBehaviour {
|
|
|
|
|
|
|
+public class Enemy : MonoBehaviour
|
|
|
|
|
+{
|
|
|
|
|
+ private float power;
|
|
|
|
|
+ private enum PowerLevels { VeryLow, Low, Medium, High, Full}
|
|
|
|
|
+ [SerializeField]
|
|
|
|
|
+ private PowerLevels powerLevel;
|
|
|
|
|
+ private EnemyAI.BehaviorController behaviorController;
|
|
|
|
|
|
|
|
// Use this for initialization
|
|
// Use this for initialization
|
|
|
- void Start () {
|
|
|
|
|
-
|
|
|
|
|
|
|
+ void Start ()
|
|
|
|
|
+ {
|
|
|
|
|
+ behaviorController = new EnemyAI.BehaviorController();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Update is called once per frame
|
|
// Update is called once per frame
|
|
|
- void Update () {
|
|
|
|
|
-
|
|
|
|
|
|
|
+ void Update ()
|
|
|
|
|
+ {
|
|
|
|
|
+ behaviorController.blackboard.Night = true;
|
|
|
|
|
+ behaviorController.Update();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|