private void Start() { player = Game_SongLoader.loader; arrayImage = GetComponentsInChildren <Image>(); arrayText = GetComponentsInChildren <Text>(); foreach (Image x in arrayImage) { x.gameObject.SetActive(false); } foreach (Text x in arrayText) { x.gameObject.SetActive(false); } }
private void Awake() { loader = this; }