Exemple #1
0
 // Use this for initialization
 void Start()
 {
     enemy      = GetComponent <Enemy>();
     boss       = GetComponent <boss1enemy>();
     enemyspeed = enemy.enemyspeed;
     enemyspeed = boss.enemyspeed;
     Hashtable table = new Hashtable();
 }
Exemple #2
0
 void Start()
 {
     player = GameObject.Find("PlayerMove");
     AudioSource[] audioSources = GetComponents <AudioSource>();
     sound01 = audioSources[0];
     sound02 = audioSources[1];
     enemy   = GetComponent <boss1enemy>();
     agent   = gameObject.GetComponent <NavMeshAgent>();
     anim    = transform.FindChild("bossenemy_unity_LOD1").GetComponent <Animator>();
 }