Ejemplo n.º 1
0
 void Start()
 {
     weaponSystem = GetComponent <WeaponSystem>();
     if (attackTarget == null)
     {
         attackTarget = GameObject.FindWithTag("Player");
     }
 }
Ejemplo n.º 2
0
 void Start()
 {
     weaponSystem = GetComponent <WeaponSystem>();
     if (attackTarget == null)
     {
         attackTarget = GameObject.FindWithTag("Player");
     }
     if (xORy)
     {
         endPos.x = enemyPos.transform.position.x + offset;
         endPos.y = enemyPos.transform.position.y;
         endPos.z = enemyPos.position.z;
     }
     else
     {
         endPos.x = enemyPos.transform.position.x;
         endPos.y = enemyPos.transform.position.y + offset;
         endPos.z = enemyPos.transform.position.z;
     }
 }