Example #1
0
	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;
		
	}
Example #2
0
    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;
    }
Example #3
0
	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);
		}
	}