Exemplo n.º 1
0
    private void Awake()
    {
        singState = new SingState (this);
        idleState = new IdleState (this);
		audioSource = gameObject.GetComponent<AudioSource> ();
		audioSource.clip = song;
    }
Exemplo n.º 2
0
    private void Awake()
    {
        singState = new SingState (this);
        idleState = new IdleState (this);
		audio = GetComponent<AudioSource>();
    }