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 UnityEngine; | |
using System.Collections; | |
public class Car : MonoBehaviour | |
{ | |
private float power = 0; | |
private float LR = 0; | |
private float direction = 0; | |
// Use this for initialization |
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 UnityEngine; | |
using System.Collections; | |
public class Coin : MonoBehaviour { | |
// Use this for initialization | |
void Start () { | |
} | |
// Update is called once per frame |
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
//-------------------------------------------------------- | |
#include <windows.h> | |
#include <windowsx.h> | |
#include <pdh.h> | |
#pragma comment (lib, "Pdh.lib") // Pdh.lib使うよ | |
//-------------------------------------------------------- Exportする | |
#ifdef __cplusplus | |
extern "C" { |
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 UnityEngine; | |
using System.Collections; | |
using UnityEngine.UI; | |
using System.Runtime.InteropServices; | |
public class CPUUsage : MonoBehaviour { | |
[DllImport("CPUUsage")] | |
private static extern void StartCPUUsage(uint usage); | |
[DllImport("CPUUsage")] | |
private static extern long GetCPUUsage(); |
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 UnityEngine; | |
using System.Collections; | |
public class LadarCamera : MonoBehaviour { | |
GameObject player; | |
// Use this for initialization | |
void Start () { | |
player = GameObject.Find("[CameraRig]/Camera (eye)"); | |
} |
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 UnityEngine; | |
using System.Collections; | |
public class Bomb : MonoBehaviour { | |
public GameObject Explision; | |
public GameObject FireWall; | |
public GameObject Debris; | |
const float EXPLOSION_TIME = 5; // 爆発までの時間 | |
Vector3 max_scale; |
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 UnityEngine; | |
using System.Collections; | |
using VRTK; | |
public class CtrlListener : MonoBehaviour { | |
void Start() | |
{ | |
// 爆弾置くボタン | |
GetComponent<VRTK_ControllerEvents>().TriggerReleased += new ControllerInteractionEventHandler(DoTriggerReleased); |
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 UnityEngine; | |
using System.Collections; | |
public class Maze : MonoBehaviour | |
{ | |
public GameObject Unbrk; // 壊れない奴 | |
public GameObject Brk; // 壊れるやつ | |
public GameObject Grnd; // 地面 | |
public GameObject Bomb; // 爆弾 | |
Vector3 block; // 1ブロックのサイズ用 |
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 UnityEngine; | |
using System.Collections; | |
public class FireWall : MonoBehaviour { | |
public GameObject Effect; // 爆風エフェクト | |
int power; // 火力 | |
Vector3 scale; // サイズ | |
Vector3 pos; // 位置 | |
int counter = 0; // 爆風を長くする用のカウンタ |
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 UnityEngine; | |
using System.Collections; | |
public class ControllerTooltips : MonoBehaviour{ | |
const float SHOW_DIST = 0.3f; // Tipsを表示する距離 | |
const float HIDE_TIME = 3.0f; // Tips消す時間 | |
GameObject eye; | |
GameObject trg; | |
GameObject pad; |
OlderNewer