using System;
using System.Collections.Generic;
using UnityEngine;
public class BCLine : MonoBehaviour
{
public Gradient gradient;
public static bool Cliked = false;
public static BCLine SavingBC;
public List<GameObject> BCChild=new List<GameObject>();
private LineRenderer lineRenderer;
private void Awake()
{
BCChild.Clear();
}
public void MakeBC(Vector3 Start,Vector3 End)
{
GameObject go = Instantiate(new GameObject(), transform.parent);
BCChild.Add(go);
go.AddComponent<Line>();
go.GetComponent<Line>().startPoint = Start;
go.GetComponent<Line>().endPoint = End;
go.GetComponent<Line>().gradient = gradient;
}
public bool EachBC(Transform Target)
{
foreach (var VARIABLE in BCChild)
{
if (VAR