void Awake() { au = FindObjectOfType <MusicAll>(); gt = FindObjectOfType <GetThing>(); gun = this.GetComponent <BossGun>(); giv = FindObjectOfType <GiveEnemy>(); }
public void EquipBossGun(BossGun bossGunToEquip) { if (equippedBossGun != null) { Destroy(equippedBossGun.gameObject); } equippedBossGun = Instantiate(bossGunToEquip, weaponBossHold.position, weaponBossHold.rotation) as BossGun; equippedBossGun.transform.parent = weaponBossHold; }