private void Start() { if (UICanvas != null) { UIController = UICanvas.GetComponent <ControllerProgress>(); } else { print("Missing UI Canvas"); } }
private void Start() { texClock = GetComponent <Text>(); if (goUICanvas != null) { GameController = goUICanvas.GetComponent <ControllerProgress>(); } else { print("No UI Canvas attached!"); } audioSource = GetComponent <AudioSource>(); }