Question by
Fransnesa · Apr 15, 2017 at 03:41 AM ·
collidercollider2donmouseup
Why OnMouseUpAsButton just work for one objetc on my project
I use OnMouseUpAsButton to handle touch that my game will get but OnMouseUpAsButton just get one of the gameobject in the game, i've already given collider to each gameobject that i make
void OnMouseUpAsButton() {
MouseManager select = GameObject.FindObjectOfType<MouseManager> ();
GameObject take = this.transform.gameObject;
Debug.Log(take);
}
Any idea why OnMouseUpAsButton don't get the other gameobject?Sorry for my bad english and grammar guys. Really need your help guys.
Comment
Your answer

Follow this Question
Related Questions
My UI object onclick event does not work if created from code, but works outside of it 0 Answers
Collision is not working with some Collider2d 1 Answer
problem with collider detection 0 Answers
Absolutely no collision detection in build but editor is fine 1 Answer
How do you make one game object follow the shape of another game object? 0 Answers