using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class LineManager : MonoBehaviour
{
public static LineManager instance;
public Transform point1;
public Transform point2;
private void Awake()
{
instance = this;
}
void Start()
{
}
void Update()
{
}
///
/// 鼠标点击的物体
///
///
public void ClickPoint(Transform point)
{
if (point1 != null)
{
point2 = point;
}
if (point1 == null)
{
point1 = point;
}
if (point1 != null && point2 != null)
{
Checkconnection(point1, point2);
}
}
public void Checkconnection(Transform transform, Transform transform2)
{
}
public void Init()
{
point2 = null;
point1 = null;
}
}