Question by
twmatlock · Feb 07, 2017 at 04:32 AM ·
script.level-designsetup
How to pass in an Integer
How would I make the highlighted part an integer in order to retrieve the current round data, because right now if I make the [0] a [1] then it just loads the round 2 data, but I need it be an int so I match it to the round.
2017-02-06-1.png
(83.3 kB)
Comment
Answer by jdean300 · Feb 07, 2017 at 09:13 AM
This?
public RoundData GetCurrentRoundData(int curRound)
{
return allRoundData[curRound];
}
// or
public int CurrentRound; // track the current round
public RoundData GetCurrentRoundData()
{
return allRoundData[CurrentRound];
}