Files
aibis-dream/Assets/Scripts/FixSystem/Cable/PhysicCable.cs
T
2025-02-19 17:25:37 +08:00

28 lines
595 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PhysicCable : MonoBehaviour
{
public Transform StartTranform;
public Transform endTransform;
public PhysicLineSegment physicLine;
// Start is called before the first frame update
void Start()
{
physicLine=transform.GetChild(0).GetComponent<PhysicLineSegment>();
}
public void Init(Vector3 endPos)
{
physicLine.Initialize(StartTranform.position,endPos);
}
// Update is called once per frame
void Update()
{
}
}