Answer by oddeven
We got it working after all: float mx = Input.mousePosition.x * 0.666f; float my = (Input.mousePosition.y + 359f) * 0.666f; // 0.666 is 720/1080
View ArticleAnswer by oddeven
I would suggest restructuring things a bit. Think about creating a HitDamageScript that you attach to objects when you hit them. The script would render the damage for some time and then destroy...
View ArticleAnswer by oddeven
The line below does not destroy the GameObject, it destroys the RigidBody! You have an array of RigidBody's not GameObjects. Destroy(numLaunchObject[2]); // change to...
View ArticleAnswer by oddeven
We got it working after all: float mx = Input.mousePosition.x * 0.666f; float my = (Input.mousePosition.y + 359f) * 0.666f; // 0.666 is 720/1080
View ArticleAnswer by oddeven
I would suggest restructuring things a bit. Think about creating a HitDamageScript that you attach to objects when you hit them. The script would render the damage for some time and then destroy...
View ArticleAnswer by oddeven
The line below does not destroy the GameObject, it destroys the RigidBody! You have an array of RigidBody's not GameObjects. Destroy(numLaunchObject[2]); // change to...
View Article