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
// Copyright Rupert Key, 2016 | |
// Published under BSD license (commercial-friendly use as you wish but recognize owner wrote it) | |
using System.Collections.Generic; | |
// uses UnityEngine for Random.Range() | |
namespace UGS.Random { | |
/// <summary> | |
/// A way to repeatedly randomly choose from an initially provided set of possibilities. |
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
diff --git a/Assets/RealisticWater/Scripts/Water/RippleCreator.cs b/Assets/RealisticWater/Scripts/Water/RippleCreator.cs | |
index 9282d1b..cee8c48 100644 | |
--- a/Assets/RealisticWater/Scripts/Water/RippleCreator.cs | |
+++ b/Assets/RealisticWater/Scripts/Water/RippleCreator.cs | |
@@ -1,3 +1,6 @@ | |
+// define to include Master Audio integration for splash sound | |
+#define MASTERAUDIO | |
+ | |
using UnityEngine; | |
using System.Collections.Generic; |
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; | |
namespace MiscCSharp { | |
public static class AbstractGenericProtected { | |
public static void Main(string[] args) { | |
var debugGraph = new DebugGraph { start = 5, end = 4, numRecords = 10 }; | |
var floatSeries = new FloatSeries(debugGraph, "series1"); | |
floatSeries.doStuff(); | |
System.Console.WriteLine("All done"); |
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
.../VR-Step/Scripts/WIPController.cs | 28 ++++++++++++++++++++-- | |
1 file changed, 26 insertions(+), 2 deletions(-) | |
diff --git a/Assets/VR-Step/Scripts/WIPController.cs b/Assets/VR-Step/Scripts/WIPController.cs | |
index 2138c61..fa6e828 100644 | |
--- a/Assets/VR-Step/Scripts/WIPController.cs | |
+++ b/Assets/VR-Step/Scripts/WIPController.cs | |
@@ -60,6 +60,12 @@ namespace VRStep | |
[Tooltip("Threshold on the accelerometer in the up direction of when to detect a jump")] | |
public float jumpDetectionThreshold = 1; |
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
static void save(string filePath) { | |
// ... | |
using (TextWriter writer = File.CreateText(filePath)) {var serializer = getSerializer(errors); | |
var errors = new List<string>(); | |
var serializer = getSerializer(errors); | |
serializer.Serialize(writer, snapshot); | |
logErrors(errors); | |
} | |
// ... |
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; | |
using UnityEngine; | |
namespace UGS { | |
class SizeTesting : MonoBehaviour { | |
private const string msgFmt = "{0}:\t\t{1:0.000} bytes"; | |
public void Awake() { | |
v<byte>(); | |
v<int>(); |
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
$ GitPortPatch.sh 22b7f80c22ac1861e945ddf30e30671c46b53d6e | |
Getting commit message | |
Getting patch | |
Getting affected filenames | |
Getting current status of those files... | |
Checking them... | |
Ensuring affected files are ready for patching... | |
Preparing Assets/TerraVolPack/TerraVol/Scripts/Data/MeshData.cs | |
Preparing Assets/TerraVolPack/TerraVol/Scripts/Map/Chunk.cs | |
Apply patch? y/n : y |
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
#!/usr/bin/env python | |
import sys, os, dropbox, time | |
from datetime import datetime | |
APP_KEY = 'API_KEY' # INSERT APP_KEY HERE | |
APP_SECRET = 'APP_SECRET' # INSERT APP_SECRET HERE | |
DELAY = 0.2 # delay between each file (try to stay under API rate limits) | |
HELP_MESSAGE = \ | |
"""Note: You must specify the path starting with "/", where "/" is the root |
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; | |
namespace UGS.unityutil.attributes { | |
/// <summary> | |
/// Checks non-null (and non-empty if applied to a string, non-zero if a scalar or Vector, etc) in a custom inspector. | |
/// Colours red if any problems. | |
/// </summary> | |
public sealed class NonNullAttribute : 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 System; | |
using UnityEngine; | |
namespace UGS { | |
/// <summary> | |
/// See <seealso cref="http://docs.unity3d.com/ScriptReference/Application.CaptureScreenshot.html"/>. | |
/// N.b. docs now say "Removed in version 2017.3.0p1" | |
/// Now API call includes super-size facility https://docs.unity3d.com/ScriptReference/ScreenCapture.CaptureScreenshot.html | |
/// </summary> |