문서 (4)
-
- 네트워크 연결 체크
- 네트워크 연결 체크하기 C#에서 네트워크이 연결되어 있는지 체크하기 위해서는 NetworkInterface 클래스 (System.Net.NetworkInformation 네임스페이스) 에 있는 GetIsNetworkAvailable() 메서드를 호출하면 된다. ...
-
- C# Thread.Sleep() 대신 사용하기 좋은 Delay() 함수
- private static DateTime Delay(int MS) { DateTime ThisMoment = DateTime.Now; TimeSpan duration = new TimeSpan(0, 0, 0, 0, MS); DateTime AfterWards = ThisMoment.Add(duration); while (AfterWards >= ThisMo...
-
- 2D 캐릭터 Sprite의 움직임 효과 구성.
- C# - 2D캐릭터 Sprite의 움직임효과 구성하기 using System.Collections; using System.Collections.Generic; using UnityEngine; public class PlayerMovement : MonoBehaviour { Rigidbody2D rbody; Animator ani...
-
- C# Code List [1]
- C# Code List 1) 게임종료 코드 public void GameExit() { //함수의 명칭은 적절하게 설정하면 된다. UnityEditor.EditorApplication.isPlaying = false; //유니티 에터상에서 게임의 실행을 중단하는 옵션이라 추측...