private void Start() { generalFunctions = GameObject.Find("General Functions"); generalFunctionsScript = generalFunctions.GetComponent <GeneralFunctionsScript>(); CheckButtons(); }
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"); }