Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void FixedUpdate () {
- if (Input.GetKeyDown(KeyCode.W))
- {
- Debug.Log(count + "1st");
- //Debug.Log(spray.GetComponents<Component>());
- spray.SetActive(true);
- Debug.Log(count + "2nd");
- //Debug.Log(spray.activeSelf);
- count++;
- } else if (Input.GetKeyUp(KeyCode.W))
- {
- Debug.Log(countBut + "1st buttom");
- spray.SetActive(false);
- Debug.Log(countBut + "2nd buttom");
- countBut++;
- }
- Debug.Log(count + " baseline");
- //Debug.Log(GameObject.FindGameObjectsWithTag("ExtinguisherSpray"));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement