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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net; | |
using UnityEngine; | |
/// <summary> | |
/// TCPOpponentSingleテスト使用クラス | |
/// Int32型の大きさを1つのパケットとして、Int32型の範囲内の乱数を送受信する。 |
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
import sys | |
# space replace to '_' | |
data={'_':18.59,'A':6.42,'B':1.27,'C':2.18,'D':3.17,'E':10.31 | |
,'F':2.08,'G':1.52,'H':4.67,'I':5.75,'J':0.08,'K':0.49 | |
,'L':3.21,'M':1.98,'N':5.72,'O':6.32,'P':1.52,'Q':0.08 | |
,'R':4.84,'S':5.14,'T':7.96,'U':2.28,'V':0.83,'W':1.75 | |
,'X':0.13,'Y':1.64,'Z':0.05,'*':0.02} | |
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; | |
using System.Collections.Generic; | |
using System.Dynamic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace HuffmanCoding | |
{ | |
/// <summary> |
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; | |
using System.Collections; | |
using UnityEngine; | |
public class CodeNotFoundException : Exception | |
{ | |
public CodeNotFoundException(string message) | |
: base(message) | |
{ | |
} |
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/Basic" { | |
//スクリプトやインスペクター(マテリアル)から設定したい値はここ | |
//シェーダプログラムが外部から参照したいものを記述 | |
//サンプルのため今回使わないものも記述 | |
Properties { | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_Color ("Main Color", Color) = (1,1,1,0.5) | |
_SpecColor ("Spec Color", Color) = (1,1,1,1) | |
_Emission ("Emmisive Color", Color) = (0,0,0,0) | |
_Shininess ("Shininess", Range (0.01, 1)) = 0.7 |
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/GrayScaleVF" { | |
Properties{ | |
_MainTex("Main", 2D) = "white" {} | |
} | |
SubShader{ | |
Lighting Off | |
Pass{ | |
CGPROGRAM |
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/SepiaVF"{ | |
Properties{ | |
_MainTex("Main", 2D) = "black"{} | |
} | |
SubShader{ | |
Lighting Off | |
Pass{ | |
CGPROGRAM |
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/BlurVF" { | |
Properties{ | |
_MainTex("Texture", 2D) = "white" {} | |
_Diff("Diff", Range(0, 1)) = 0.1 | |
} | |
SubShader{ | |
Pass{ | |
CGPROGRAM | |
#pragma fragment frag |
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/EmissionVF" { | |
Properties{ | |
_MainTex("Albedo (RGB)", 2D) = "white" {} | |
_Emission("Emission", Range(-1,1)) = 0 | |
_Diff("Diff", Range(0, 1)) = 0 | |
} | |
SubShader{ | |
Pass{ | |
CGPROGRAM |
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/BasicVF" { | |
Properties{ | |
_MainTex("Main",2D)="black"{} | |
} | |
SubShader{ | |
Lighting Off | |
Pass{ | |
CGPROGRAM |