using UnityEngine;
public class Quiz : MonoBehaviour
{
void Start()
{
int result = 0;
for (int i = 0; i < 5; i++)
{
if (i % 2 != 0)
result += 2;
else
result -= 1;
}
Debug.Log(result);
}
}
Post #476
409
AK Akrus Games | Unity @akrusunity · 2.67K subscribers using UnityEngine;
public class Quiz : MonoBehaviour
{
void Start()
{
int result = 0;
for (int i = 0; i < 5; i++)
{
if (i % 2 != 0)
result += 2;
else
result -= 1;
}
Debug.Log(result);
}
}