Play audiosource when tag or state was change

i need help. i want to play audiosource with tag Done or State equals to 1.
I have a game object that has tag a and animation. if i want to play audiosource i have to answer the gameobject and gameobject that has tag a will change to tag done. and the animation will change from state equals to 0 to state equals to 1.

121526-screenshot-21.png
Sorry for my bad english. thanks before.

try gameObject.transform.tag == “Done”