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 Wheel : MonoBehaviour { | |
public GameObject root; | |
public float wheelRadius; | |
public float steerAngle; | |
public float brakeTorque; | |
public float motorTorque; |
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 Gun : MonoBehaviour { | |
public GameObject bullet; | |
public float offset; | |
public float power; | |
public ForceMode mode; | |
public float lifetime; |
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
private bool nantokaFlag = true; | |
void Update() | |
{ | |
if(nantokaFlag && ゲームオーバー条件) | |
{ | |
nantokaFlag = false; | |
GameOver(); | |
} | |
} |
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 Ovr; | |
public class VelocityChecker : MonoBehaviour { | |
Hmd hmd; | |
float prevVelY; | |
// Use this for initialization | |
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 UnityEngine; | |
using System.Collections; | |
public class AppManager : MonoBehaviour { | |
public string jumpSceneName = "Title"; | |
public KeyCode jumpSceneKey = KeyCode.Return; | |
public KeyCode quitAppKey = KeyCode.Escape; | |
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 Ovr; | |
public class UpVelocityMover : MonoBehaviour { | |
Hmd hmd; | |
void Start () { | |
hmd = OVRManager.capiHmd; |
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 socket | |
import time | |
import sys | |
host = '192.168.1.10' | |
port = 8899 | |
sleeptime = 10 | |
serversock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
argv = sys.argv | |
argc = len(argv) |
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
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
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
module.exports = function(jsonArray) | |
{ | |
var json = jsonArray[0]; | |
var keys = []; | |
for(var key in json) | |
{ | |
keys.push(key); | |
} | |
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
#ifndef OLEDDEBUGGER_H | |
#define OLEDDEBUGGER_H | |
#include<Adafruit_GFX.h> | |
#include<Adafruit_SSD1306.h> | |
class OLEDDebugger{ | |
public: | |
OLEDDebugger() | |
{ |
OlderNewer