Advertisement
Guest User

Example

a guest
Nov 24th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. void Update()
  2. {
  3. UIManager uiManager = GameObject.Find("Canvas").GetComponent<UIManager>();
  4.  
  5. if(uiManager.gameover==true)
  6. {
  7. Destory(this.GameObject)
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement