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; | |
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
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Net.Sockets; | |
using System.Threading; | |
using UnityEngine; |
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.IO; | |
using System.Runtime.InteropServices; | |
public class PacketQueue | |
{ | |
/// <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.Collections; | |
using System.IO; | |
using System.Xml.Serialization; | |
using UnityEngine; | |
public class GUI_Pass : MonoBehaviour | |
{ | |
private string pass = string.Empty; | |
private void OnGUI() |
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.Collections; | |
using UnityEngine; | |
public class TimeDestroy : MonoBehaviour | |
{ | |
[SerializeField] | |
private float destroyTime = default(float); | |
private float start; | |
private void Start() |
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.Collections; | |
using System.Linq; | |
using UnityEngine; | |
public class Sin_Expr : MonoBehaviour | |
{ | |
[SerializeField] | |
private GameObject ball = default(GameObject); | |
[SerializeField] | |
private float speed = default(float); |
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 UnityEngine; | |
public class MoveBall : MonoBehaviour | |
{ | |
private event Action<Transform, System.Object> Move = delegate { }; | |
private bool isMove; | |
private object param; |
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.Collections; | |
using UnityEngine; | |
public class Gero : MonoBehaviour | |
{ | |
[SerializeField] | |
private GameObject ball = default(GameObject); | |
[SerializeField] | |
private float speed = default(float); | |
[SerializeField] |
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.Collections; | |
using UnityEngine; | |
public class DestroyOnOutOfCamera : MonoBehaviour | |
{ | |
private void OnBecameInvisible() | |
{ | |
Destroy(gameObject); | |
} | |
} |