void Start() { audioSources = GetComponents <AudioSource>(); rigid = GetComponent <Rigidbody>(); // Set the sorting layer and order. MeshRenderer renderer = GetComponent <MeshRenderer>(); renderer.sortingLayerName = "tableLayer"; potedBallsGUI = GameObject.Find("PotedBallsGUI").GetComponent <PotedBallsGUIController>(); }
void Start() { cont = GameObject.Find("PotedBallsGUI").GetComponent <PotedBallsGUIController>(); }