Beispiel #1
0
	// Use this for initialization
	void Start () {

        autorizedNotes = new List<string>();
        autorizedNotes.Add("z");
        autorizedNotes.Add("q");
        autorizedNotes.Add("s");
        autorizedNotes.Add("d");

        notez = Resources.Load ("Prefab/Note-z") as GameObject;
		noteq = Resources.Load ("Prefab/Note-q") as GameObject;
		notes = Resources.Load ("Prefab/Note-s") as GameObject;
		noted = Resources.Load ("Prefab/Note-d") as GameObject;
		note1 = Resources.Load ("Prefab/Note-1") as GameObject;
		note2 = Resources.Load ("Prefab/Note-2") as GameObject;
		player = GameObject.FindGameObjectWithTag ("Player");
		papaNote = new GameObject();
		papaNote.name = "PapaNote";
		sizeTab = 0;
		timer = 0;
		index = 0;
		noteSheet = new string[maxSize];
		dico = GameObject.FindGameObjectWithTag ("Dico").GetComponent<DicoSong>().tabSong;
		partition = GameObject.FindGameObjectWithTag ("Partition").GetComponent<PartitionManager>();

        animator = FindObjectOfType<PlayerController>().animator;

        cC = GameObject.FindGameObjectWithTag("Player").GetComponent<CharacterController>();
    }
    void Awake()
    {
        instance = this;
        discoveredSongs = new Dictionary<string, bool>();
        constellations = new Dictionary<constellationType, List<string>>();
        
        InitConstellations();
		constel = GameObject.FindGameObjectsWithTag("Const");
    }