Exemple #1
0
 void Update()
 {
     if (Input.GetButtonDown("Fire1") && !toiletPaper.gameObject.activeSelf) // if the toilet paper is not away
     {
         Debug.Log("Should throw");
         toiletPaper.Throw();
         toiletPaper.gameObject.SetActive(true);
     }
 }