- Home /
CompareTag Between multiple Buttons
Hi, I am using Unity 5. There are 2 Buttons in a Canvas - YesButton & NoButton. I added only one script called "ButtonScript.cs" in both buttons as a component.
I need-
When pressing in YesButton,
Debug.Log("Yes");
When pressing in NoButton,
Debug.Log("No");
What should I write?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612102028im_/https://answers.unity.com/themes/thub/images/avi.jpg)