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
{ | |
"compare" : { | |
"201904141259063200" : { | |
"hands" : [ { | |
"cards" : [ { | |
"rank" : 9, | |
"suit" : 1, | |
"upcard" : false | |
}, { | |
"rank" : 3, |
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 UnityEngine; | |
using UnityEngine.Networking; | |
public static class FirebaseDatabase | |
{ | |
public static IEnumerator Send<T>(string firebaseUrl, T content) | |
{ |
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.Linq; | |
using UnityEditor; | |
using UnityEngine; | |
public static class Unity2DComponents | |
{ | |
[MenuItem("GameObject/2D Object/Box", false, 0)] | |
private static void Create2DCube() | |
{ |
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
# Setup Unity Project with .gitignore | |
setupunity() { | |
git init | |
curl -o .gitignore https://raw.githubusercontent.com/github/gitignore/master/Unity.gitignore | |
git add . | |
git commit -m "Initial commit." | |
} |
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
%YAML 1.1 | |
%TAG !u! tag:unity3d.com,2011: | |
--- !u!13 &1 | |
InputManager: | |
m_ObjectHideFlags: 0 | |
serializedVersion: 2 | |
m_Axes: | |
- serializedVersion: 3 | |
m_Name: Oculus_CrossPlatform_PrimaryIndexTrigger | |
descriptiveName: |
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
[].slice.call(document.querySelectorAll('#files .file.open')) | |
.filter(elem => elem.querySelectorAll('.hidden-diff-reason, .data.empty').length == 1) | |
.map(elem => elem.parentNode.removeChild(elem)); |
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 UnityEngine; | |
using UnityEngine.Networking; | |
using UnityEngine.SceneManagement; | |
public class LoadSceneFromAssetBundle : MonoBehaviour | |
{ | |
[SerializeField] | |
private string assetBundleUrl; |
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
#if UNITY_EDITOR | |
using System.IO; | |
using UnityEditor; | |
public class CreateAssetBundles | |
{ | |
[MenuItem("Assets/Build AssetBundles")] | |
static void BuildAllAssetBundles() | |
{ |
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.Generic; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
using UnityEngine; | |
using UnityEngine.UI; | |
using UnityEngine.XR.iOS; | |
public class ARKitObjectController : 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 System.Collections; | |
public static class CustomExtensions | |
{ | |
public static void EditKeyframeValue(this AnimationCurve animationCurve, int key, float value) | |
{ | |
Keyframe[] keys = animationCurve.keys; |