//helper method to instantiate bottle smash void Smash() { smashScript.Smash(); sh.GetComponent <Shelf>().ShelfFalling(); smokeParticlesForWaterAndPotassium.SetActive(false); }
public void Lock(bool status = true) { gestureLock = status; if (lockInfo) { lockInfo.text = infoDict[gestureLock]; } if (gestureLock) { foreach (var shelf in exclusives) { shelf.Hide(); } mainMenu.Hide(); } else if (showOnUnlock) { mainMenu.Show(); mainMenu.GetComponent <KinectSlider>().Froze(); } }