I need some code for a sandbox project I'm making in Unity3d using C#. I have a project where some cubes are spawned and then I'm able to click anywhere to shoot a sphere towards them.
What I need is for some touch functionality. I'd like the functionality for four things to happen:
1. On single touch, shoot sphere at speed 10
2. On double touch, shoot at speed 20.
3. When shoot, I want some particles to appear where the sphere was shot from (nothing fancy)
4. On impact, I want the cube to break into 5 smaller spheres.
I'd also like to discuss your code with you.
Project files can be downloaded here: [url removed, login to view]