Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Update()
- {
- UIManager uiManager = GameObject.Find("Canvas").GetComponent<UIManager>();
- if(uiManager.gameover==true)
- {
- Destory(this.GameObject)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement