- Home /
Builded game dont work with self made bluetooth mouse controller.
Normaly my remote mose fine on other applications or windows, but when I try it on my game, It doesn't click at all.
I am using this code for destroying game objects in game :
void Update(){
if (Input.GetMouseButtonDown (0)) {
Invoke ("DestroyMe",0.13f);
}
}
public void OnMouseDown(){
//some code for data collect for csv
Invoke ("DestroyMe",0.13f);
}
void DestroyMe()
{
Destroy(gameObject);
}
And this I am using for buttons to click like "Start", "Menu","Exit":
public void LoadLevel(string name){
Debug.Log ("Level load requested for:"+ name);
Application.LoadLevel(name);
}
public void ExitGame(){
Debug.Log ("Exit The Game Now!");
Application.Quit();
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612114253im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Differentiate between button click and screen click - Pause button not working 3 Answers
How to make unity expect a click 0 Answers
Distribute terrain in zones 3 Answers
Click a Button through a script 1 Answer