ClickScript.cs 225 B

1234567891011
  1. using UnityEngine;
  2. using System.Collections;
  3. public class ClickScript : MonoBehaviour {
  4. public void OnClick()
  5. {
  6. Destroy(this.gameObject);
  7. //Debug.Log("DESTROY = " + this.gameObject.name);
  8. }
  9. }