Exemple #1
0
    private void Start()
    {
        generalFunctions       = GameObject.Find("General Functions");
        generalFunctionsScript = generalFunctions.GetComponent <GeneralFunctionsScript>();

        CheckButtons();
    }
Exemple #2
0
    private void Start()
    {
        camera = GetComponent <Camera>();
        var generalObject = GameObject.Find("General Functions");

        generalFunctionsScript = generalObject.GetComponent <GeneralFunctionsScript>();

        //Find the Canvas
        var UIObject = GameObject.Find("InGame UI");

        //Find the player
        player = GameObject.Find("Player");
    }