This is only a small snippet of my code, but I checked over everything, including braces, and everything runs fine without this statement, I can't tell what is wrong with it though (the subprogram it called is a random float generator btw)...
'''
float funnelDirection = randomFunnelDirection(); float funnelR = funnelDirection; if (funnelR == 1f) { funnelR = -1f; } else { funnelR = 1f; }
'''
https://stackoverflow.com/questions/65418865/illegal-start-of-expression-for-if-statment-no-problems-with-braces December 23, 2020 at 12:04PM
没有评论:
发表评论