public void IsDropped() { if (srcAudio.isPlaying) { srcAudio.Stop(); } light.GetComponent <Light>().intensity = 0.1f; InventionDialog.SetActive(false); LoadNextAssignment(); }
public void Pressed(int i) { if (assignment == i) { TurnInventionOn(); LevelManager.GetComponent <Hide_test>().requestDialog("Instructions", Instructions[0]); inventions[assignment].AddComponent <DragHandealer>(); inventionText.text = InventionString[assignment]; InventionDialog.SetActive(true); } return; }