Exemple #1
0
 // Use this for initialization
 void Start()
 {
     musicManager = GameObject.FindObjectOfType <MusicManager>();
     player       = GameObject.FindObjectOfType <SpPlayerController>();
     //spawnNotePrefab = GameObject.FindGameObjectWithTag("MusicalNote");
     elapsedTime = 0;
     timeToSpawnMusicalNoteTick = timeToSpawnMusicalNote;
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     player = FindObjectOfType <SpPlayerController>();
     GetComponent <Rigidbody2D>().velocity = direction * speed;
     audioSFX = GetComponent <AudioSource>();
 }