본문 바로가기

분류 전체보기146

2023-07-24 유니티 #2 문득 책에서 봤던 string? strTest; 이런식으로 null체크 했던 부분 생각나서 테스트 했슴당.. 델리게이트 활용한 null 체크 테스트,, public class InvokeTest : MonoBehaviour { // 델리게이트 선언 public delegate void MyDelegate(int test,string textTest); //매개변수를 int와 string으로 줌. public MyDelegate myDelegate = null; private int testIntValue = 10; private string testStrValue = "hello"; void Start() { myDelegate?.Invoke(testIntValue, testStrValue); //이건 .. 2023. 7. 24.
백준 C#11718 2023-07-21 using System.Text; //스트링빌더때 필요함 StringBuilder stringBuilder = new StringBuilder(); //스트링 빌더 string put = string.Empty; //초기화 while(true){ put = Console.ReadLine(); if(string.IsNullOrEmpty(put)) break; //vscode에서는 아무리봐도 이상한 결과인데 백준에선 정답이여서 그냥 때려쳤음.. stringBuilder.AppendLine(put); //list에서 Add 역할 } Console.WriteLine(stringBuilder); 첫 번째 트라이때 했던 것 string? put = string.Empty; //입력 받을 곳 StringBuilder.. 2023. 7. 21.
백준 C#5622 2023-07-20 원래 안 올릴려고 했는데 성공해서 올립니당.. string? put = Console.ReadLine(); //입력 받기 if(put == null) return; //null일 경우 리턴 int time = 0; //시간의 합계 int play = 0; //몇 회 플레이 되었는가 for(int i = 0; i 2023. 7. 20.
2023-06-26 유니티#1 아침에 우연히 바탕화면은 보니, 이전에 NavMeshSurface로 했던 흔적을 발견하였다. 블렌더로 Object > Convert 막 이런거 건드리고,,, 유니티에서 면 한개로 x y 좌표 90도씩도 회전시켜보고,,,, 아무튼 어떻게든 해볼려고 했던 기억이 난당.. 이 영상을 보고 따라했었던 기억이,,, https://www.youtube.com/watch?v=26reYhOOyco 요즘도 뭔가를 만지고 있긴합니당,,@@ 결국은 저거 사용안하고 그냥 GPT활용해서 구형 물체에서 좌표계산하는식으로 이동했슴당,, 2023. 6. 26.