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; | |
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; | |
/// <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; | |
/// <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 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; | |
using System; | |
using System.Net; | |
using System.Net.Cache; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
public class TimeSample : MonoBehaviour | |
{ |
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 UnityEditor; | |
using UnityEditor.Callbacks; | |
using UnityEditor.iOS.Xcode; | |
using System.IO; | |
using System.Collections.Generic; | |
public class PostBuildProcess : MonoBehaviour | |
{ | |
internal static void CopyAndReplaceDirectory(string srcPath, string dstPath) |
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 Weapon : MonoBehaviour { | |
[System.NonSerialized] public GameObject whoEquip; | |
Gun[] gun; | |
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 UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class Mask : MonoBehaviour { | |
private const string PATH = "Prehabs/Color/"; | |
public enum ID | |
{ | |
Red = 1, |
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 UnityEditor; | |
[CustomEditor(typeof(Mask))] | |
public class EquipmentEditor : Editor { | |
public override void OnInspectorGUI() | |
{ | |
var obj = target as Mask; | |
obj.id = (Mask.ID)EditorGUILayout.EnumMaskField ("MaskIDField", obj.id); |