public void Extinguish() { Acidburn.SetActive(false); bodyfire.GetComponent <ParticleSystem>().Stop(); rhandfire.GetComponent <ParticleSystem>().Stop(); lhandfire.GetComponent <ParticleSystem>().Stop(); isBurning = false; }
// Use this for initialization void Start() { isStart = false; isBegin = false; //ischecklist = false; isburner = false; islit = false; isacid = false; isBurning = false; hasGlasses = false; hasLabCoat = false; hasGloves = false; hasTongs = false; hasBottle = false; hasFlask = false; isAlive = true; hasPitcher = false; hasLitmus = false; exp1 = false; exp2 = false; usedBurner = false; usedScale = false; usedManual = false; hasLabWear = false; usedShower = false; equipTongs = false; equipPitcher = false; equipLitmus = false; equipGlasses = false; equipGloves = false; equipCoat = false; interactScale = false; interactBurner = false; tongBool = false; spillBool = false; litBool = false; showerBool = false; scaleBool = false; bunsenBool = false; readScalePop = false; potExpBool = false; audioBools = new bool[20]; //change to number of audio clips for (int j = 0; j < 19; j++) { audioBools[j] = false; } currentTime = Time.time; timeStamp = currentTime; gloveIcon = GameObject.Find("Gloves").GetComponent <Equip>().getIcon(); glassIcon = GameObject.Find("SafetyGlasses").GetComponent <Equip>().getIcon(); coatIcon = GameObject.Find("LabCoat").GetComponent <Equip>().getIcon(); gloveParticle = GameObject.Find("Gloves").GetComponentInChildren <ParticleSystem>(); manualParticle = GameObject.Find("BookSafety").GetComponentInChildren <ParticleSystem>(); coatParticle = GameObject.Find("LabCoat").GetComponentInChildren <ParticleSystem>(); glassesParticle = GameObject.Find("SafetyGlasses").GetComponentInChildren <ParticleSystem>(); bunsenParticle = GameObject.Find("burner").GetComponentInChildren <ParticleSystem>(); scaleParticle = GameObject.Find("balance").GetComponentInChildren <ParticleSystem>(); showerParticle = GameObject.Find("shower").GetComponentInChildren <ParticleSystem>(); tongsParticle = GameObject.Find("Tong").GetComponentInChildren <ParticleSystem>(); litmusParticle = GameObject.Find("LitmusPaper").GetComponentInChildren <ParticleSystem>(); popOutParticle = GameObject.Find("ScaleExperiment").GetComponentInChildren <ParticleSystem>(); gloveParticle.Stop(); gloveParticle.Clear(); coatParticle.Stop(); coatParticle.Clear(); glassesParticle.Stop(); glassesParticle.Clear(); bunsenParticle.Stop(); bunsenParticle.Clear(); scaleParticle.Stop(); scaleParticle.Clear(); showerParticle.Stop(); showerParticle.Clear(); tongsParticle.Stop(); tongsParticle.Clear(); litmusParticle.Stop(); litmusParticle.Clear(); popOutParticle.Stop(); popOutParticle.Clear(); bodyfire = gameObject.transform.Find("Flames").gameObject; bodyfire.GetComponent <ParticleSystem>().Stop(); bodyfire.GetComponent <ParticleSystem>().Clear(); rhandfire = GameObject.Find("burnRHand"); rhandfire.GetComponent <ParticleSystem>().Stop(); rhandfire.GetComponent <ParticleSystem>().Clear(); lhandfire = GameObject.Find("burnLHand"); lhandfire.GetComponent <ParticleSystem>().Stop(); lhandfire.GetComponent <ParticleSystem>().Clear(); countdown = GetComponent <Countdown>(); audio = GetComponent <AudioSource>(); whiteboardText = GameObject.Find("Lab_Whiteboard").GetComponentInChildren <Text>(); tong = GameObject.Find("Tong"); litmusScene = GameObject.Find("LitmusScene"); acidSpill = GameObject.Find("AcidFlask"); burner = GameObject.Find("burner"); balance = GameObject.Find("balance"); PotExp = GameObject.Find("PotassiumGroup"); shower = GameObject.Find("shower"); tongPos = tong.transform.position; scencePos = litmusScene.transform.position; spillPos = acidSpill.transform.position; burnerPos = burner.transform.position; scalePos = balance.transform.position; showerPos = shower.transform.position; potExpPos = PotExp.transform.position; //acidSpill.SetActive(false); //litmusScene.SetActive(false); //tong.SetActive(false); Acidburn = GameObject.Find("AcidEffect"); Acidburn.SetActive(false); /*disableObj(tong); * disableObj(litmusScene); * disableObj(acidSpill); * disableObj(burner); * disableObj(shower); * disableObj(balance); * disableObj(PotExp);*/ whiteboardText.text = "Welcome to Lab!\n ツ\nOBJECTIVES: " + "\n -Read the Manual"; }