public void DestroyGrandma2Dialogue() { if (digrandma2.showscore() == true) { Debug.Log("destroyTeendialogue"); Destroy(grandma2dialogue); Destroy(grandma2retry); Destroy(grandma2view); Destroy(Jake2); pc.MoveEnable(); Jake3.SetActive(true); jaketrigger.SetActive(true); star2.SetActive(true); soundcomplete.Play(); jenny.transform.position = new Vector3(57.9f, 0.5f, -26.4f); jenny.transform.rotation = Quaternion.Euler(0, 0, 0); Destroy(plate); score += 1; gameplaymenu.SetActive(true); joystick.resethandle(); } else { grandma2retry.SetActive(true); } }
public void DestroyGoHomeDialogue() { if (digohome.showscore() == true) { Debug.Log("destroygohomedialogue"); Destroy(gohomedialogue); Destroy(gohomeretry); pc.MoveEnable(); star1.SetActive(true); score += 1; gameplaymenu.SetActive(true); joystick.resethandle(); } else { gohomeretry.SetActive(true); } }
public void DestroyWalkPathDialogue() { if (diwalkpath.showscore() == true) { Debug.Log("destroywalkpathdialogue"); Destroy(walkpathdialogue); Destroy(walkpathretry); Destroy(walkpathview); pc.MoveEnable(); star2.SetActive(true); score += 1; gameplaymenu.SetActive(true); joystick.resethandle(); } else { walkpathretry.SetActive(true); } }
public void DestroyKidnapperDialogue() { if (dikidnapper.showscore() == true) { Debug.Log("destroykidnapperdialogue"); Destroy(kidnapperdialogue); Destroy(kidnapperretry); Destroy(kidnapperview); Destroy(kidnapper); pc.MoveEnable(); star3.SetActive(true); score += 1; gameplaymenu.SetActive(true); joystick.resethandle(); } else { kidnapperretry.SetActive(true); } }
public void DestroyCatDialogue() { if (dicat.showscore() == true) { Debug.Log("destroycatdialogue"); Destroy(catdialogue); Destroy(catretry); Destroy(catview); pc.MoveEnable(); star1.SetActive(true); soundcomplete.Play(); score += 1; gameplaymenu.SetActive(true); joystick.resethandle(); } else { catretry.SetActive(true); } }
public void DestroyJakeDialogue() { if (dijake.showscore() == true) { Debug.Log("destroyJakedialogue"); Destroy(Jakedialogue); Destroy(Jakeretry); Destroy(Jakeview); pc.MoveEnable(); star3.SetActive(true); soundcomplete.Play(); score += 1; gameplaymenu.SetActive(true); joystick.resethandle(); } else { Jakeretry.SetActive(true); } }
public void DestroyTeenDialogue() { if (diteen.showscore() == true) { Debug.Log("destroyTeendialogue"); Destroy(Teendialogue); Destroy(teenretry); Destroy(teenview); pc.MoveEnable(); star2.SetActive(true); soundcomplete.Play(); score += 1; gameplaymenu.SetActive(true); joystick.resethandle(); } else { teenretry.SetActive(true); } }
public void DestroyGrandmaDialogue() { if (digrandma.showscore() == true) { Debug.Log("destroycatdialogue"); Destroy(grandmadialogue); Destroy(grandmaretry); Destroy(grandmaview); Destroy(Jake); grandma2trigger.SetActive(true); pc.MoveEnable(); Jake2.SetActive(true); star1.SetActive(true); plate.SetActive(true); soundcomplete.Play(); score += 1; gameplaymenu.SetActive(true); joystick.resethandle(); } else { grandmaretry.SetActive(true); } }