void Start () { sequenceSound = Resources.Load<SequenceSound> ("prefabs/SoundPrefabs/sequenceSound"); textPoints= GameObject.Find("PointsPanel").transform.GetChild(0).gameObject.GetComponent<Text>(); GameObject barInstance = GameObject.FindGameObjectWithTag ("Bars"); numberOfColoumns = barInstance.transform.childCount; }
void Start() { sequenceSound = Resources.Load <SequenceSound> ("prefabs/SoundPrefabs/sequenceSound"); textPoints = GameObject.Find("PointsPanel").transform.GetChild(0).gameObject.GetComponent <Text>(); GameObject barInstance = GameObject.FindGameObjectWithTag("Bars"); numberOfColoumns = barInstance.transform.childCount; }
void Start () { sequenceSound = Resources.Load<SequenceSound> ("prefabs/SoundPrefabs/sequenceSound"); textPoints= GameObject.Find("PointsPanel").transform.GetChild(0).gameObject.GetComponent<Text>(); GameObject barInstance = GameObject.FindGameObjectWithTag ("Bars"); numberOfColoumns = barInstance.transform.childCount; Screen.sleepTimeout = SleepTimeout.NeverSleep; points = 0; if(PlayerPrefsManager.GetIsFirstTime()==1){ Invoke("disappearArrowes",10); } }