// Use this for initialization void Start() { foreach (Transform child in transform) { if (child.name == "start" && startObject != null) { startObject = child; } if (child.name == "end" && endObject != null) { endObject = child; } } GetComponent <Collider> ().isTrigger = true; objectHeight = GetComponent <Renderer> ().bounds.size.y; objectWidth = GetComponent <Renderer> ().bounds.size.x; reAnimationScript = GetComponent <ReAnimatedObject> (); }
// Use this for initialization void Start() { _reAnimationHandler = GetComponent <ReAnimatedObject> (); }