- Code: Select all
switch (myactor.animpos)
{
case 0:
// do this
break;
case 1:
// do that
break;
}
error: switch expression not integral? huh?
animpos is integer, right ?
switch (myactor.animpos)
{
case 0:
// do this
break;
case 1:
// do that
break;
}
switch ((int)myactor.animpos)
{
case 0:
// do this
break;
case 1:
// do that
break;
}
Users browsing this forum: No registered users and 1 guest