This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Threading; | |
class BitmapEncoder | |
{ | |
public static void WriteBitmap(Stream stream, int width, int height, byte[] imageData) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma warning disable CS0618, IDE0051 | |
/* | |
- Unity 2019.4.x | |
*/ | |
using UnityEngine; | |
using UnityEngine.XR.WSA.Input; | |
public class GestureManager : MonoBehaviour | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
//내비게이션 기능을 사용하기 위해 추가해야 하는 네임스페이스 | |
using UnityEngine.AI; | |
public class MonsterCtrl : MonoBehaviour | |
{ | |
//몬스터의 상태 정보 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
//반드시 필요한 컴포넌트를 명시해 해당 컴포넌트가 삭제되는 것을 방지하는 어트리뷰트 | |
[RequireComponent(typeof(AudioSource))] | |
public class FireCtrl : MonoBehaviour | |
{ | |
//총알 프리팹 | |
public GameObject bullet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
//반드시 필요한 컴포넌트를 명시해 해당 컴포넌트가 삭제되는 것을 방지하는 어트리뷰트 | |
[RequireComponent(typeof(AudioSource))] | |
public class FireCtrl : MonoBehaviour | |
{ | |
//총알 프리팹 | |
public GameObject bullet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
//반드시 필요한 컴포넌트를 명시해 해당 컴포넌트가 삭제되는 것을 방지하는 어트리뷰트 | |
[RequireComponent(typeof(AudioSource))] | |
public class FireCtrl : MonoBehaviour | |
{ | |
//총알 프리팹 | |
public GameObject bullet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
//내비게이션 기능을 사용하기 위해 추가해야 하는 네임스페이스 | |
using UnityEngine.AI; | |
public class MonsterCtrl : MonoBehaviour | |
{ | |
//몬스터의 상태 정보 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
//반드시 필요한 컴포넌트를 명시해 해당 컴포넌트가 삭제되는 것을 방지하는 어트리뷰트 | |
[RequireComponent(typeof(AudioSource))] | |
public class FireCtrl : MonoBehaviour | |
{ | |
//총알 프리팹 | |
public GameObject bullet; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
//내비게이션 기능을 사용하기 위해 추가해야 하는 네임스페이스 | |
using UnityEngine.AI; | |
public class MonsterCtrl : MonoBehaviour | |
{ | |
//몬스터의 상태 정보 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
//TextMesh Pro 관련 컴포넌트를 접근하기 위해 선언 | |
using TMPro; | |
public class GameManager : MonoBehaviour | |
{ | |
//몬스터가 출현할 위치를 저장할 List 타입 변수 | |
public List<Transform> points = new List<Transform>(); |
NewerOlder