public void ThrowAwayItem() { currentObject.GetComponent <Animator>().Play("Object_KickOut"); hand.GetComponent <Animator>().Play("Hand_Punch"); GiveRandomPitch(1f, 2.5f); GetComponent <AudioSource>().PlayOneShot(audioClips[1]); thisAnim = ObjectAnimState.ObjOut; currentWaitTime = waitTime; textBox.SetActive(false); textText.GetComponent <Text>().text = ""; }
//======ALEX public void StoreItem() { //if(currentObject != null) currentObject.GetComponent <Animator>().Play("Object_FlyOut"); //GameObject.Find("Hand").GetComponent<Animator>().Play("Hand_Slap"); GiveRandomPitch(1f, 2.5f); GetComponent <AudioSource>().PlayOneShot(audioClips[0]); jetSetSource.pitch = 1; jetSetSource.PlayOneShot(audioClips[7]); //crowdSource.PlayOneShot(audioClips[12]); goodBlip.GetComponent <Animator>().Play("Good_Blip_Flash"); thisAnim = ObjectAnimState.ObjOut; currentWaitTime = waitTime; textBox.SetActive(false); textText.GetComponent <Text>().text = ""; }
public void BringInItem() { animeVignette.GetComponent <Animator>().SetTrigger("StopFlash"); //give object model a rotation to rotate from and to from = rotations[Random.Range(0, rotations.Length)]; currentObjectModel.transform.rotation = from.rotation; to = rotations[Random.Range(0, rotations.Length)]; currentObject.GetComponent <Animator>().Play("Object_FlyIn"); GiveRandomPitch(1f, 2.5f); GetComponent <AudioSource>().PlayOneShot(audioClips[2]); thisAnim = ObjectAnimState.ObjIn; currentWaitTime = waitTime; //if(currentObject.) //bring up cons for the first actionconLeft = if (pMan.currentItem.backStory != "") { textBox.SetActive(true); textText.GetComponent <Text>().text = pMan.currentItem.backStory; nameText.GetComponent <Text>().text = ""; } }