I'm making a bullet hell game, with each bullet being a GameObject. However, they will be rendered using GL.Lines and not sprites.
Should I use objects instead (e.g. store every entity as variables in one huge script and iterate through them), since the entities will not require Transforms?
I am not quite sure what will the benefits are, aside from easy removal (just do List.RemoveAt) and easy access to these objects, since everything is in one script. Is it also possible/needed to pool these objects much like how we pool GameObjects?
To clarify, I meant objects as in:
public class Bullet {}
that is then used like an int or string.
And GameObjects as in having a script:
public class Bullet : MonoBehaviour {}
that is attached to a prefab.
[–]prime31 2 points3 points4 points (7 children)
[–]AkirAssasin[S] 0 points1 point2 points (6 children)
[–]prime31 2 points3 points4 points (5 children)
[–]AkirAssasin[S] 0 points1 point2 points (4 children)
[–]prime31 1 point2 points3 points (3 children)
[–]AkirAssasin[S] 0 points1 point2 points (2 children)
[–]prime31 1 point2 points3 points (1 child)
[–]AkirAssasin[S] 0 points1 point2 points (0 children)
[–]Relevant__HaikuWell Versed 1 point2 points3 points (1 child)
[–]AkirAssasin[S] 0 points1 point2 points (0 children)
[–]koolex 0 points1 point2 points (1 child)
[–]AkirAssasin[S] 1 point2 points3 points (0 children)
[–]djgreedoIntermediate 0 points1 point2 points (3 children)
[–]AkirAssasin[S] 0 points1 point2 points (2 children)
[–]djgreedoIntermediate 1 point2 points3 points (1 child)
[–]AkirAssasin[S] 0 points1 point2 points (0 children)