Mam w Unity instrukcję warunkową if
if(comboList != null && comboList.Length > 0)
{
int motionIndex = int.Parse(comboList[attackIndex]);
if(motionIndex < attackAnimations.Length)
{
anim.SetInteger(PARAMETER_STATE, 2);
anim.SetInteger(PARAMETER_ATTACK_TYPE, comboType);
anim.SetInteger(PARAMETER_ATTACK_INDEX, attackIndex);
}
}
Gdy chcę wykonać animację to po wciśnięciu klawisza wyskakuje mi błąd
FormatException: Input string was not in the correct format
Dodam, że na MACu taki problem nie występuje. Czy może mnie ktoś oświecić gdzie tu jest błąd?