Example #1
0
 void Awake( )
 {
     input        = GetComponent <PlayerInput> ( );
     input.Parent = this;
     anim         = GetComponent <PlayerAnimation> ( );
     anim.Parent  = this;
     rhythmTimer  = GameObject.Find("AudioSource").GetComponent <RhythmTimer> ( );
 }
Example #2
0
 // Start is called before the first frame update
 void Start()
 {
     musicSheet  = gameObject.GetComponent <Transform>();
     rhythmTimer = GameObject.Find("AudioSource").GetComponent <RhythmTimer>();
 }