27 lines
523 B
C#
27 lines
523 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// 测试Demo脚本
|
|
/// </summary>
|
|
public class WireDemo : MonoBehaviour
|
|
{
|
|
/// <summary>
|
|
/// 测试用的a和b
|
|
/// </summary>
|
|
public Transform a, b;
|
|
|
|
/// <summary>
|
|
/// 测试的连线对象
|
|
/// </summary>
|
|
WireObject wire;
|
|
|
|
// Start is called before the first frame update
|
|
void Start()
|
|
{
|
|
//创建测试连线
|
|
wire = WireObject.CreateWire(null, a, b, WireCreater.Instance.wireRatio);
|
|
}
|
|
}
|