private void Awake() { RodBehaviour = GameObject.Find("Rod").GetComponent <RodBehaviour>(); Rod = GameObject.Find("RodTop"); lineRenderer.SetPosition(0, Rod.transform.position); }
// Group: Functions private void Start() { RodBehaviour = GameObject.Find("Rod").GetComponent <RodBehaviour>(); Audio = GameObject.Find("AudioController").GetComponent <AudioController>(); score = GameObject.Find("Score").GetComponent <ScoreManager>(); }