csDestroyEffect.cs 280 B

123456789101112
  1. using UnityEngine;
  2. using System.Collections;
  3. public class csDestroyEffect : MonoBehaviour {
  4. void Update () {
  5. if (Input.GetKeyDown(KeyCode.X) || Input.GetKeyDown(KeyCode.Z) || Input.GetKeyDown(KeyCode.C))
  6. {
  7. Destroy(gameObject);
  8. }
  9. }
  10. }