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 Test_ModelAnimationPath : MonoBehaviour | |
{ | |
public string positionName; | |
public MeshFilter meshFilts; | |
public List<Vector3> vecList; |
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 csRaycast : MonoBehaviour { | |
private float speed = 5f; | |
// 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 UnityChanController06 : MonoBehaviour { | |
// parameters | |
public int speed; |
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 System.IO; | |
using SimpleJSON; | |
public class PlayerState : MonoBehaviour | |
{ | |
public string name; | |
public int hp; |
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"; |
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
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
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
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class SpriteManager : MonoBehaviour { | |
public UISprite icon; | |
// Use this for initialization | |
void Start () { | |
NewerOlder