Skip to main content
9 events
when toggle format what by license comment
Dec 3, 2017 at 21:25 comment added AwesomeBob2341 I had been so confused for while. This really helped. Thanks!
Dec 3, 2017 at 20:51 comment added Stephan Agreed. Bullets are also a prime opportunity for object pooling as well. Also they should track the ray to the position, not just move to its coordinates. But all of these performance improvements are beyond the scope of an answer to an entry level question. I think it's good to mention tho for the Asker to be able to dig into further.
Dec 3, 2017 at 20:46 comment added Draco18s no longer trusts SE Note that First, when you spawn an object, that should be the last the current script interacts with it isn't necessarily true: there's an overhead on scripts having their own Update() methods. Having a central script that runs Update() and tells other objects to perform frame-tick-code is more efficient. But correctly organizing your software architecting to use that design pattern is too long for a comment.
Dec 3, 2017 at 19:50 comment added Stephan Fiancé is buying shoes. Found some time to fight with the formatting. Updated to vector2. Also corrected a copy paste error on the third class name
Dec 3, 2017 at 19:49 history edited Stephan CC BY-SA 3.0
fixed to vector 2 and updated 3rd example class name
Dec 3, 2017 at 19:09 comment added DCON I applaud you for writing this on mobile. People like you who are so keen to help even through the horribleness that is mobile, is what keeps this community (and the world) moving forward. Thank you.
Dec 3, 2017 at 19:02 comment added Stephan You're right. I'll update when I get back to a computer. Code formatting is terrible on mobile
Dec 3, 2017 at 18:59 comment added DMGregory In your ScreenToWorldPoint examples, it looks like target should be of type Vector2 instead of Transform.
Dec 3, 2017 at 18:18 history answered Stephan CC BY-SA 3.0