daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top