Files
ICDBWTMAG2020/Assets/Scripts/SprayScript.cs
T

18 lines
271 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SprayScript : MonoBehaviour
{
void OnCollisionEnter2D(Collision2D other){
if(other.gameObject.name == "Rag")
{
Destroy(this.gameObject);
}
}
}