示例#1
0
    //helper method to instantiate bottle smash
    void Smash()
    {
        smashScript.Smash();
        sh.GetComponent <Shelf>().ShelfFalling();

        smokeParticlesForWaterAndPotassium.SetActive(false);
    }
示例#2
0
 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();
     }
 }