void Update() { Vector2[] temp = new Vector2[_tentacleData.nodes.Count]; for (int i = 0; i < temp.Length; i++) { temp [i] = _tentacleData.nodes[i].GetVec(); } m_EdgeCollider.points = temp; m_LineRenderer.positionCount = temp.Length; m_LineRenderer.SetPositions (Vector2toVector3 (temp)); // UpdateParts() ; _tentacleData.Move(origin.transform.position) ; _tentacleData.Update(_setting.radius , _setting.length , _setting.friction, _setting.wind , _setting.gravity) ; }
void Update() { // UpdateParts() ; _tentacleData.Move(origin.transform.position); _tentacleData.Update(_setting.radius, _setting.length, _setting.friction, _setting.wind, _setting.gravity); }