SHARE
TWEET

Untitled

a guest Sep 20th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void Update()
  2.     {
  3.         if (transform.position.y <= 1.9 && !flag)
  4.         {
  5.             Debug.Log("U hit the ground bang bang");
  6.             flag = true;
  7.  
  8.            
  9.         }
  10.  
  11.         if (flag)
  12.         {
  13.  
  14.            
  15.             transform.Translate(new Vector3(0, 0, 1)*Time.deltaTime);
  16.         }
  17.        
  18.     }
  19. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top