Hi !
Is there a syntax to acces to another “funtion” in unity ?
This is my code :
void OnCLick() {
Bonjour();
}
void Bonjour() {
Debug.Log("OK");
}
But it’s dont work.
Is there a specific function to acces others functions ?
Thanks
Hi !
Is there a syntax to acces to another “funtion” in unity ?
This is my code :
void OnCLick() {
Bonjour();
}
void Bonjour() {
Debug.Log("OK");
}
But it’s dont work.
Is there a specific function to acces others functions ?
Thanks
Unity uses C#, so your code above should work no problem.
Although I fear it may not work since you have a capital ‘L’ on OnCLick, it should be OnClick()
Aargh !
Thanks you very much ! It works now !