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