using UnityEngine;
using System.Collections;
using UnityEditor;
[RequireComponent(typeof(LineRenderer))]
public class LaserEffect : MonoBehaviour {
RaycastHit2D hit;
Ray2D ray;
private LineRenderer line;
// Use this for initialization
void Start () {
line = GetComponent<LineRenderer>();
}
// Update is called once per frame
void Update ()
{
if (hit.collider.attachedRigidbody)
{
if (hit.collider.tag == "blue" || hit.collider.tag == "purple" || hit.collider.tag == "green" || hit.collider.tag == "pink" || hit.collider.tag == "yellow")
{
Debug.Log (hit.collider.tag);
}
}
}
}