38 lines
653 B
C#
38 lines
653 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class LineManager : MonoBehaviour
|
|
{
|
|
public static LineManager instance;
|
|
private Transform point1;
|
|
private Transform point2;
|
|
private void Awake()
|
|
{
|
|
instance = this;
|
|
}
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
/// <summary>
|
|
/// Êó±êµã»÷µÄÎïÌå
|
|
/// </summary>
|
|
/// <param name="point"></param>
|
|
public void ClickPoint(Transform point)
|
|
{
|
|
if (point1 != null)
|
|
{
|
|
point2 = point;
|
|
}
|
|
if (point1 == null)
|
|
{
|
|
point1 = point;
|
|
}
|
|
}
|
|
}
|