28 lines
595 B
C#
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()
|
|
{
|
|
|
|
}
|
|
}
|