Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Block : Transform;
- function Update () {
- if(Input.GetMouseButtonDown(0)){
- clear();
- }
- }
- function clear(){
- Instantiate(Block,transform.position,transform.rotation);
- Destroy(gameObject);
- }
Advertisement
Add Comment
Please, Sign In to add comment