Beispiel #1
0
    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>();
    }
Beispiel #2
0
 void Start()
 {
     cont = GameObject.Find("PotedBallsGUI").GetComponent <PotedBallsGUIController>();
 }