Exemplo n.º 1
0
    //helper method to instantiate bottle smash
    void Smash()
    {
        smashScript.Smash();
        sh.GetComponent <Shelf>().ShelfFalling();

        smokeParticlesForWaterAndPotassium.SetActive(false);
    }
Exemplo n.º 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();
     }
 }