This file contains hidden or 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 csDistance : MonoBehaviour { | |
//거리λ₯Ό ꡬνκΈ° μν κ²μ μ€λΈμ νΈλ€μ νΈλμ€νΌμ μ μ₯ν λ³μ μ μΈ. | |
public Transform box1; | |
public Transform box2; | |
public Transform box3; |
This file contains hidden or 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 csCoroutine2 : MonoBehaviour { | |
//λΉλκΈ° μμ μ΄ λλ λκΉμ§ λμ | |
public string url; //μΉ μ£Όμλ₯Ό μ μ₯ν μ€νΈλ§ λ³μλ₯Ό νΌλΈλ¦μΌλ‘ μ μΈνλ€. | |
WWW www; //WWW νμ μ λ³μλ₯Ό μ μΈνλ€. |
This file contains hidden or 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 UnityEditor; // need | |
public class csGameManager : MonoBehaviour { | |
// Use this for initialization | |
void Start () { | |
This file contains hidden or 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 () { | |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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"; |