Exemple #1
0
 void OnEnable()
 {
     pathBehavior = target as PathBehavior;
 }
Exemple #2
0
 public void OnStartEnemyBehaviorAI(Animator animator, PathBehavior pathBehavior)
 {
     this.pathBehavior = pathBehavior;
         audioBehavior = new AudioBehavior();
         animationBehavior = new AnimationBehavior(animator);
 }
Exemple #3
0
 void OnDestroy()
 {
     pathBehavior = null;
 }
Exemple #4
0
 public void OnStartEnemyBehaviorAI(Animator animator)
 {
     pathBehavior = gameObject.GetComponent<PathBehavior>();
         audioBehavior = new AudioBehavior();
         animationBehavior = new AnimationBehavior(animator);
 }