void Awake() { EplayerHealth = gameObject.GetComponent <EnemyHealth>(); Emt = gameObject.GetComponent <EnemyMoveTest>(); EShots = GameObject.FindGameObjectWithTag("EnemyBulletSpawn"); sp1 = GameObject.FindGameObjectWithTag("sp1"); sp2 = GameObject.FindGameObjectWithTag("sp2"); sp3 = GameObject.FindGameObjectWithTag("sp3"); }
void Awake() { PlayerObject = GameObject.FindGameObjectWithTag("Enemy"); EplayerHealth = PlayerObject.GetComponent <EnemyHealth>(); Emt = gameObject.GetComponent <EnemyMoveTest>(); EShots = GameObject.FindGameObjectWithTag("EnemyBulletSpawnph1"); sp1 = GameObject.FindGameObjectWithTag("sph11"); sp2 = GameObject.FindGameObjectWithTag("sph12"); Emt.GetComponent <EnemyMoveTest>().Speed = 1; EShots.SetActive(false); }
void Awake() { EplayerHealth = gameObject.GetComponent <EnemyHealth>(); Emt = gameObject.GetComponent <EnemyMoveTest>(); EShots = GameObject.FindGameObjectWithTag("EnemyBulletSpawn"); EShots2 = GameObject.FindGameObjectWithTag("pls"); sp1 = GameObject.FindGameObjectWithTag("sp1"); sp2 = GameObject.FindGameObjectWithTag("sp2"); sp3 = GameObject.FindGameObjectWithTag("sp3"); sp4 = GameObject.FindGameObjectWithTag("sp4"); Emt.GetComponent <EnemyMoveTest>().Speed = 1; EShots.SetActive(false); EShots2.SetActive(false); }