void Start() { wmg = wire.GetComponent <CleanBezierCurve>(); collisionBehaviour = this.gameObject.transform.GetChild(0).GetComponent <CollisionBehaviour>(); animator = this.gameObject.GetComponent <Animator>(); startPos = new Vector3(0, 0.4f, -wire.GetComponent <CleanBezierCurve>().zOffsetPp) * wire.transform.localScale.y + wire.transform.position; wireStartPoint.transform.position = startPos; startPos.y += 0.035f; this.transform.position = startPos; }
void Start() { collisionBehaviour = colliderParent.GetComponent <CollisionBehaviour>(); wmg = wire.GetComponent <CleanBezierCurve>(); cp = ring.GetComponent <CheckPoint>(); }