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; | |
[RequireComponent(typeof(CharacterController))] | |
public class ChaCon : MonoBehaviour | |
{ | |
public float 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 UnityEngine.SceneManagement; | |
public class Main : MonoBehaviour | |
{ | |
public GameObject button; | |
private bool count; |
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 Opacity : MonoBehaviour | |
{ | |
bool sight; | |
Color color; | |
float red, green, blue, alpha; //RGBを操作するための変数 |
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
//シェーダー宣言、ファイルで一つだけ必要 /で階層化 以下ShaderLab言語 | |
Shader "Unlit/NewUnlitShader" | |
{ | |
//プロパティ宣言(インスペクター上で表示する項目を記述) | |
//テクスチャだけではなく数値やカラーも設定できる | |
Properties | |
{//左から、シェーダー内で使う変数(インスペクター上で表示する名称、受取リソースの種類) | |
//=初期値(テクスチャが指定されない時は白表示) {}は互換性の関係で記述 | |
_MainTex ("Texture", 2D) = "white" {} |
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.Collections; | |
namespace UnityChan | |
{ | |
// 必要なコンポーネントの列記 | |
[RequireComponent(typeof(Animator))] | |
[RequireComponent(typeof(CapsuleCollider))] | |
[RequireComponent(typeof(Rigidbody))] |
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 Login : MonoBehaviour | |
{ | |
private string u = "aaa"; //IDを設定 | |
private string p = "111"; //passwordを設定 |
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 Layouttest : MonoBehaviour | |
{ | |
private float sliderValue = 1.0f; | |
private float maxSliderValue = 10.0f; | |
private float spaceSize; // |
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 GUILayoutTUT : MonoBehaviour | |
{ | |
private float sliderValue = 1.0f; | |
private float maxSliderValue = 10.0f; | |
void OnGUI() |
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 PlayerMoveController : MonoBehaviour | |
{ | |
public Animator anim; | |
public Rigidbody rbody; | |
//private bool run; |
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 FollowCamera : MonoBehaviour | |
{ | |
public Transform target; | |
public float smoothing = 5f; | |
private Vector3 offset; |