- 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