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; | |
using System.Net; | |
using System.Net.Cache; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
public class DateTimeNist | |
{ | |
public static DateTime Now | |
{ |
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; | |
/// <summary> | |
/// Gun.csクラスによって生成された弾丸の処理クラス | |
/// </summary> | |
public class Bullet : MonoBehaviour | |
{ | |
public float speed; | |
public float deleteTime; |
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; | |
/// <summary> | |
/// 弾丸を生成発射するクラス | |
/// リロード時間 | |
/// クールタイム時間 | |
/// パルス発射 | |
/// 発射方法変更 | |
/// </summary> |
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; | |
public class TimeDoSample : MonoBehaviour { | |
public bool stopTime; | |
float time = 0.1f; | |
TimeDo update; | |
TimeDo updateAnyTimeDo; | |
TimeDo fixedUpdate; |
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; | |
public static class _Time | |
{ | |
private static int iLastFrame = 0; | |
private static float fLastTime = 0.0f; | |
private static float fDeltaTime = 0.0f; | |
// 初期化: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 UnityEngine; | |
using System.Collections; | |
/// <summary> | |
/// 時間を計測してtrue,falseを返すクラス | |
/// </summary> | |
public class TimeDo | |
{ | |
/******************************************************** | |
* 型 |
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; | |
public class CollisionLimitSampleObject : MonoBehaviour { | |
public enum Way | |
{ | |
Up = 1, | |
Down = 2, | |
Left = 4, |
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; | |
using System.Collections.Generic; | |
/// <summary> | |
/// 反発回数制限クラス | |
/// 指定時間内に特定回数以上オブジェクトに接触処理させないためのクラス | |
/// オブジェクトの名前を利用し、接触回数を制限する。 | |
/// 同じ名前のオブジェクトは区別されない | |
/// 時間が経過すると削除されるQueueを作成することで処理している |
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 UnityEngine.UI; | |
using System.Collections; | |
/// <summary> | |
/// 加減算カウンタークラス | |
/// 機能 | |
/// 比率カウント | |
/// 直接カウント | |
/// 敷き詰め、敷き詰める長さ |
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; | |
using System.Collections.Generic; | |
public class RatePickerSample : MonoBehaviour { | |
public enum ColorKey : int{ | |
Red, | |
Blue, | |
Green, |