Skip to content

Instantly share code, notes, and snippets.

@takoyakiroom
Created February 10, 2018 05:45
Show Gist options
  • Save takoyakiroom/689b3743d48ec14cfe8f90a8f1af5ef7 to your computer and use it in GitHub Desktop.
Save takoyakiroom/689b3743d48ec14cfe8f90a8f1af5ef7 to your computer and use it in GitHub Desktop.
消しゴム
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Eraser : MonoBehaviour {
void OnTriggerEnter(Collider other)
{
if(other.tag == "Pen")
{
Destroy(other.gameObject);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment