Beispiel #1
0
 // Use this for initialization
 void Start()
 {
     defaultSpeed = 3.5f;
     parent       = (miniBossController)FindObjectOfType(typeof(miniBossController));
     spawns       = parent.spawns;
     enemySprite  = transform.GetChild(0);
 }
Beispiel #2
0
 // Use this for initialization
 void Start()
 {
     parent       = (miniBossController)FindObjectOfType(typeof(miniBossController));
     enemySprite  = transform.GetChild(0);
     target       = parent.FindClosest();
     defaultSpeed = 2;
     atkDist      = 1.0f;
 }