public void BuyBazooka() { if (bazookaLevel < 3) { if (points >= bazookaPrices [bazookaLevel]) { points -= bazookaPrices [bazookaLevel]; bazookaLevel += 1; if (SceneManager.GetActiveScene().name != "Menu") { gameAudioManager.PlayOneShot(buyClip, 1); UpdatePoint(); } else { menuAudioManager.PlayOneShot(buyClip, 1); } } } Debug.Log("Bazooka Level: " + bazookaLevel); if (bazookaLevel >= 1 && SceneManager.GetActiveScene().name != "Menu") { // GameObject.Find ("FireButton").GetComponent<Button>().interactable = true; GameObject.Find("Bazooka").GetComponent <SpriteRenderer> ().enabled = true; GameObject.Find("Gun").GetComponent <Gun> ().enabled = true; } if (bazookaLevel > 0) { equippedBazookaInGunScript = "Basic"; } if (SceneManager.GetActiveScene().name != "Menu") { if (slot1 != "Basic" && slot2 != "Basic") { gun.ChangeWeapon("Basic"); } } if (slot1 != "Basic" && slot2 != "Basic") { if (isSurvival) { if (!isStory) { if (bazookaLevel > 1) { if (SceneManager.GetActiveScene().name == "Menu") { menuUI.EquipNotifyOpen(); } else { inventory.EquipNotifyOpen(); } } } } else { if (isStory) { if (bazookaLevel > 0) { if (SceneManager.GetActiveScene().name == "Menu") { menuUI.EquipNotifyOpen(); } else { inventory.EquipNotifyOpen(); } } } } } }