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 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; | |
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 csKeyMovePhone : 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 csGizmoView : MonoBehaviour { | |
public Color _color = Color.red; | |
public float _radius = 0.2f; | |
void OnDrawGizmos() |
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 csKeyMove : MonoBehaviour { | |
public float a; | |
public float x; | |
// Update is called once per frame | |
void Update () { | |
//Horizontal - Z axis |
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 RayCastEx : MonoBehaviour { | |
void OnCreate() { } | |
void OnUpdate() { } | |
void OnDrawGizmos() |
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 MyRandomOnUnitSphere : MonoBehaviour { | |
// Update is called once per frame | |
void Update () { | |
Vector3 start = Random.onUnitSphere; | |
Debug.DrawLine(start - Vector3.forward * 0.01f, start + Vector3.forward * 0.01f, Color.green, 50.0f); | |
Debug.DrawLine(start - Vector3.right * 0.01f, start + Vector3.right * 0.01f, Color.green, 50.0f); |
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 CharacterMove : MonoBehaviour { | |
public Transform cameraTransform; | |
public float moveSpeed = 10.0f; | |
public float jumpSpeed = 10.0f; | |
public float gravity = -20.0f; |