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.Collections.Generic; | |
using UnityEngine; | |
public class Gun : MonoBehaviour { | |
public GameObject bullet; | |
public AudioSource audio_source; | |
private Transform point; |
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.Collections.Generic; | |
using UnityEngine; | |
using System; | |
public class OVRHand : MonoBehaviour { | |
private GameObject holdPosition; | |
private OVRInput.RawButton whichHand; | |
public Transform haveItem; |
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.Generic; | |
public class Functor { | |
public static List<T> map<T> (System.Func<T, T> f, List<T> list) { | |
List<T> newList = new List<T> (); | |
foreach (var num in list) { | |
newList.Add (f (num)); | |
} | |
return newList; |
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.SceneManagement; | |
using UnityEngine.UI; | |
public class FadeManager : MonoBehaviour { // ここでゲームオーバー処理とクリア処理 | |
/// <summary> | |
/// 基本的にenableFadeをtrueにしたあと、したいフェードのboolをtrueに変える | |
/// </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.Collections.Generic; | |
using UnityEngine; | |
public class PointerTest : MonoBehaviour { | |
private LineRenderer pointer; | |
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
public class Sample01 { | |
// private type. | |
private int n1 = 10; | |
private float n2 = 10.0f; | |
private string s1 = "文字を書けるよ!"; | |
// public type. | |
public int n3 = 10; | |
public float n4 = 10.0f; | |
public string s2 = "文字を書けるよ!"; |
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 SimpleFirebaseUnity; | |
using System.Collections.Generic; | |
public class NetworkTest : MonoBehaviour { | |
public InputField input; | |
private List<string> messageList = new List<string>(); |
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
// NetworkSingleton.cs | |
public class NetworkSingleton : MonoBehaviour { | |
public static NetworkSingleton Instance; | |
private string URL = "myfirebaseid.firebaseio.com"; | |
private string APIKEY = "firebasedatabaseKey"; | |
public Firebase firebase; | |
private void Awake () { |
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 System.Xml; | |
using System; | |
public class Gmap : MonoBehaviour { | |
public string PlaceName; | |
private double latitude; |