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(); } public void Init(Vector3 endPos) { physicLine.Initialize(StartTranform.position,endPos); } // Update is called once per frame void Update() { } }