I thought there was and better nice way to write this but I can't remember. Is there an nicer way to write this in Lua?
if curSwitch == "shapes" then curSwitch = "colors" elseif curSwitch == "colors" then curSwitch = "shapes" end
Aucun commentaire:
Enregistrer un commentaire