so I created a mouse event that detects mouse coordinates on click.
my issue the that with each click the events keeps on firing more. and I don’t know how to make it only work once.
also I want to return data from that event.
can anyone help me with this , I’ve been stuck on it for long now.
Thank you,
Youssef.
You are instantiating on each solution a new FeedBack() object. Each time you do this you’ll get a number of new FeedBack() objects that all react.
In your overrides add a public static FeedBack feed = new FeedBack();, and remove the instantiation from the RunScript part (var feed = new FeedBack();)