Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. void FixedUpdate () {
  2.  
  3. if (Input.GetKeyDown(KeyCode.W))
  4. {
  5. Debug.Log(count + "1st");
  6. //Debug.Log(spray.GetComponents<Component>());
  7. spray.SetActive(true);
  8. Debug.Log(count + "2nd");
  9. //Debug.Log(spray.activeSelf);
  10. count++;
  11.  
  12. } else if (Input.GetKeyUp(KeyCode.W))
  13. {
  14. Debug.Log(countBut + "1st buttom");
  15. spray.SetActive(false);
  16. Debug.Log(countBut + "2nd buttom");
  17. countBut++;
  18. }
  19. Debug.Log(count + " baseline");
  20. //Debug.Log(GameObject.FindGameObjectsWithTag("ExtinguisherSpray"));
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement