-
Initializing values in an expression/ Counter Incrementing
Hey Everybody!
I’m trying to run a counter in an expression. I need to initialize the variable so that if the counter hasn’t incremented it on a previous frame the variable is created with value 0. If the counter has already been incremented, I just want to leave the value as is.Does this code look right to you guys?
if (peakCounter = null)
{
peakCounter = 0;
}Thanks!