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; | |
public class Test_ModelAnimationPath : MonoBehaviour | |
{ | |
public string positionName; | |
public MeshFilter meshFilts; | |
public List<Vector3> vecList; |
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; | |
public class UnityChanController06 : MonoBehaviour { | |
// parameters | |
public int speed; |
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 System.IO; | |
using SimpleJSON; | |
public class PlayerState : MonoBehaviour | |
{ | |
public string name; | |
public int hp; |
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.Text.RegularExpressions; | |
public class CSVReader | |
{ | |
static string SPLIT_RE = @",(?=(?:[^""]*""[^""]*"")*(?![^""]*""))"; | |
static string LINE_SPLIT_RE = @"\r\n|\n\r|\n|\r"; |
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
// 2D ํ๋ ์ด์ด x์ถ ์์ง์ ์ ํ | |
private void ScreenCheck(){ | |
Vector3 worldPos = Camera.WorldToViewportPoint(this.transform.position); | |
if(worldPos.x < 0.05f) worldPos.x = 0.05f; | |
if(worldPos.x > 0.95f) worldPos.x = 0.95f; | |
this.transform.position = Camera.main.ViewportToWorldPoint(worldPos); | |
} |
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
Shader "Custom/Tex" { | |
Properties { | |
/// | |
/// "Albedo (RGB)" : Albedo ํ ์ค์ณ๋ฅผ ๋ฃ๋ ๊ณณ์ด๊ณ , ์ํ๋ ์ฌ์ฉํ์ง ์๊ณ RGB ์ฑ๋๋ง ์ฌ์ฉํ๊ฒ ๋ค๋ ์๋ฏธ. | |
/// 2D : ์ด ์ธํฐํ์ด์ค๊ฐ 2D ํ ์ค์ณ๋ฅผ ๋ฐ๋ ๋ถ๋ถ์ด๋ผ๋ ์๋ฏธ. | |
/// "white"{} : ๋ ์ด ํ ์ค์ณ๊ฐ ์ธํฐํ์ด์ค๊ฐ ์ฒ์ ์๊ฒจ์ ์๋ฌด๊ฒ๋ ๋ค์ด ์์ง ์์ ๋. ํฐ์ ํ ์ค์ณ๊ฐ ๋ค์ด์๋ค๊ณ ์๊ฐ๋๋๋ก ๋ง๋ค๋ผ๋ ์๋ฏธ | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} // ํ ์ค์ณ๋ฅผ ์ ๋ ฅ๋ฐ๋ ๋ณ์. | |
} | |
SubShader { |
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
Shader "Custom/NewSurfaceShader" { | |
Properties { // ์ธ์คํํฐ ์ฐฝ์์ ๋ณด์ฌ์ฃผ๋ | |
_Brightness("Change Brightness!!", Range(0,1)) = 0.5 | |
_TestFloat("Test Float!!", Float) = 0.5 | |
_TestColor("Test Color!!", Color) = (1,1,1,1) | |
_TestVector("Test Vector", Vector) = (1,1,1,1) | |
_TestTexture("Test Texture",2D) = "white" {} | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_Glossiness ("Smoothness", Range(0,1)) = 0.5 |
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; | |
public class TouchScreenEx : MonoBehaviour { | |
//์๊ฐ๋ฝ์ ํ๋ฉด์ ๋ฟ์ ์ํ์์ ์์ง์ด๋ฉด ๋ฌผ์ฒด๊ฐ ์์ง์ธ๋ค | |
void Update () { | |
if(Input.touchCount > 0 ){ |
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; | |
public class SpriteManager : MonoBehaviour { | |
public UISprite icon; | |
// Use this for initialization | |
void Start () { | |
NewerOlder