C7P2WYNCCLPXHFMLHMWCB3DDQWOUDPBSXNJQ2UCGUED4JBUJHCNQC
if (_martialSequenceTime > _timeSequenceNodes.Count) {
while (_martialSequenceTime > _timeSequenceNodes.Count) {
GameObject timeNode = Instantiate(TimeCounterNodeTemplate, TimeCounterTransform);
TextMeshProUGUI secLabel = timeNode.GetComponentInChildren<TextMeshProUGUI>();
while (_martialSequenceTime + 1 <= _timeSequenceNodes.Count) {
GameObject timeNodeToRemove = _timeSequenceNodes[^1];
_timeSequenceNodes.RemoveAt(_timeSequenceNodes.Count - 1);
Destroy(timeNodeToRemove.gameObject);
}
secLabel.text = (_timeSequenceNodes.Count + 1).ToString();
_timeSequenceNodes.Add(timeNode);
timeNode.SetActive(true);
}
while (_martialSequenceTime > _timeSequenceNodes.Count) {
GameObject timeNode = Instantiate(TimeCounterNodeTemplate, TimeCounterTransform);
TextMeshProUGUI secLabel = timeNode.GetComponentInChildren<TextMeshProUGUI>();
secLabel.text = (_timeSequenceNodes.Count + 1).ToString();
_timeSequenceNodes.Add(timeNode);
timeNode.SetActive(true);
else if (_martialSequenceTime + 1 < _timeSequenceNodes.Count) {
while (_martialSequenceTime + 1 < _timeSequenceNodes.Count) {
GameObject timeNodeToRemove = _timeSequenceNodes[^1];
_timeSequenceNodes.RemoveAt(_timeSequenceNodes.Count - 1);
Destroy(timeNodeToRemove.gameObject);
}
}