패스 파인더 - 새로운 길을 개척하는 사람
기본 방법 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; namespace CheckPoint01 { class Program { static void Main(string[] args) { Random rnd = new Random(); const string LINE = "--------------------------------------------"; const int END_LINE = 42; const int DELAY_TIME = 200; int runA = 0; int runB = 0; i..
새로운 메서드를 생성하고 여러개의 매개변수들을 지정해 줄 수 있다. TestMethod()라는 메서드를 만들고 (string name, int a)라는 2개의 매개변수를 생성해주었다. 그리고 코드블럭 안에 다음의 호출문을 만들어주고 Update() 메서드 내 TestMethod("ball", 0)과 같이 타겟 오브젝트를 호출해주면 로그 값이 콘솔창에 찍히게 된다.