Closed nisathnasar closed 3 years ago
Round timer is set to 30 seconds currently
Changed it to 1m 30 seconds in a later commit
In RoundManager,
TransformPlayersRound
all three methods have duplicated code which is unmaintainable. I think we can improve this by having a struct like:private struct RoundSpawnPosition{ public Vector2 CopPosition; public Vector2 RobberPosition; //Add constructor if required }
And then storing three instances of this in a list (one per round). Then, you can have one method which takes
int
param to specify a round or use a global value to determine which struct to use.
I've fixed this could you check if thats what you wanted. If so then I'll remove the old code before merging
I'd put
RoundSpawnPosition
into a List. Then you won't need the switch statement with repeated code
Do you mean like an array? like
localPlayerRB.position = RoundSpawnPosition[roundNumber-1]
?
Either or But yeah the example you made pretty much captures it.
Either or But yeah the example you made pretty much captures it.
Check again pelase
Round timer is set to 30 seconds currently