Unity 기본2 - C#의 연산자들

1. 사칙연산 +,-,*은 덧셈, 뺄셈, 곱셈인데 나눗셈 / 연산은 몫을 구해줌 %는 나머지를 구해주고 당연하지만 연산자는 우선순위가 있다. 곱셈, 나눗셈(나머지)을 먼저 하고 덧셈, 뺄셈은 뒤에 한다. 하지만 이런게 헷갈리면 먼저 연산하고 싶은걸 괄호 쳐서 하면 됨 using System.Collections; using System.Collections.Generic; using UnityEngine; public class HelloWorld : MonoBehaviour { // Start is called before the first frame update void Start() { int a = 5; int b = 3; Debug.Log(a + b); Debug.Log(a - b); Debug..