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