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