Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class stone : MonoBehaviour {
  5.  
  6. public int health;
  7. // Use this for initialization
  8. void Start () {
  9. health = 1;
  10. }
  11.  
  12. // Update is called once per frame
  13. void Update () {
  14. // print(health);
  15. if(health <= 0) { Destroy(gameObject); }
  16.  
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement