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.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class ReadOnlyAttribute : PropertyAttribute | |
| { | |
| } |
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 Oculus.Avatar; | |
| using Oculus.Platform; | |
| using Oculus.Platform.Models; | |
| using System.Collections; | |
| public class OculusAvatarSync : MonoBehaviour | |
| { | |
| private const string ROOM_NAME = "AvatarRoom"; |
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.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using HashTable = ExitGames.Client.Photon.Hashtable; | |
| public class RoomProp : MonoBehaviour | |
| { | |
| int RestTime = 60; | |
| 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 UnityEngine.UI; | |
| public class Demo : MonoBehaviour | |
| { | |
| // You need to register your game or application in Twitter to get cosumer key and secret. | |
| // Go to this page for registration: http://dev.twitter.com/apps/new | |
| public string CONSUMER_KEY; | |
| public string CONSUMER_SECRET; |
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.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using Vuforia; | |
| public class SimpleCloudHandler : MonoBehaviour, ICloudRecoEventHandler | |
| { | |
| public ImageTargetBehaviour ImageTargetTemplate; | |
| private CloudRecoBehaviour mCloudRecoBehaviour; |
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.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.Events; | |
| public class CoroutineSample : MonoBehaviour { | |
| // Use this for initialization | |
| void Start () { | |
| StartCoroutine (FirstFunc(SecondFunc)); |
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.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public class Circle : MonoBehaviour { | |
| public GameObject obj; | |
| // Use this for initialization | |
| 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
| enum GameState | |
| { | |
| none, | |
| waitforstart, | |
| playing, | |
| gameover | |
| } | |
| GameState currentState = GameState.none; | |
| GameState nextState = GameState.none; |
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.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using HoloToolkit.Unity.SpatialMapping; | |
| using HoloToolkit.Unity.InputModule; | |
| using System; | |
| public class MySpatialProcess : MonoBehaviour,IInputClickHandler | |
| { |