void Start()
{
Debug.Log(CalcFactorial(3));
}
int CalcFactorial(int f)
{
if (f == 0) return 1;
else return f * CalcFactorial(f - 1);
}
void Start()
{
Debug.Log(CalcFactorial(3));
}
int CalcFactorial(int f)
{
if (f == 0) return 1;
else return f * CalcFactorial(f - 1);
}