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
function Use-GitCleanRecursively | |
{ | |
$ErrorActionPreference= 'silentlycontinue' | |
$initialPath = Get-Location | |
Get-ChildItem -recurse -force | | |
Where-Object {$_.name -eq ".git"} | | |
ForEach-Object { | |
Set-Location $_.parent.FullName | |
Write-Output $_.parent.FullName |
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
{ | |
"dependencies": { | |
"com.unity.purchasing": "exclude", | |
"com.unity.ads": "exclude", | |
"com.unity.analytics": "exclude", | |
"com.unity.standardevents": "exclude" | |
} | |
} |
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 MathUtilities { | |
/// <summary> | |
/// Smoothly lerps between start and end positions within transition time. | |
/// Uses Mathf.SmoothStep to ensure 0 - 1 translation. | |
/// </summary> | |
/// <param name="startPosition"> Point at which Moving should start. </param> | |
/// <param name="endPosition"> Destination point. </param> | |
/// <param name="startTime"> Initial time it started at. </param> | |
/// <param name="transitionTime"> The maximum amount of time it should take to complete. </param> |
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 UnityUiExtensions { | |
/// <summary> | |
/// Check if the mouse or first finger is over Unity UI element. | |
/// </summary> | |
/// <returns></returns> | |
private bool IsOverUi() { | |
#if (UNITY_ANDROID || UNITY_IOS) && !UNITY_EDITOR | |
return EventSystem.current.IsPointerOverGameObject(Input.GetTouch(0).fingerId); | |
#else |
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
/// <summary> | |
/// GameObject manipulation extensions. | |
/// </summary> | |
public class GameObjectExtensions : MonoBehaviour { | |
private static Transform selectedRoot = null; | |
/// <summary> | |
/// Flattens all children to parent level, can be an expensive as recursive. | |
/// </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
//#undef UNITY_EDITOR // Lets you edit Android code easily with formatting, comment out before going back to editor. | |
#if UNITY_ANDROID && !UNITY_EDITOR // stop auto formatter removing unused using. | |
using UnityEngine; | |
#endif | |
/// <summary> | |
/// @StewMcc 21/02/2018 | |
/// </summary> | |
namespace LittleLot { |
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; | |
/// <summary> | |
/// @StewMcc 9/10/2017 | |
/// </summary> | |
namespace LittleLot { | |
/// <summary> | |
/// Singleton class that ensures there is only ever one of itself in the scene. | |
/// The singleton will delete itself if one already exists. |
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
{ | |
"FormattingOptions": { | |
"NewLine": "\n", | |
"UseTabs": true, | |
"TabSize": 4, | |
"IndentationSize": 4, | |
"SpacingAfterMethodDeclarationName": false, | |
"SpaceWithinMethodDeclarationParenthesis": false, | |
"SpaceBetweenEmptyMethodDeclarationParentheses": false, | |
"SpaceAfterMethodCallName": false, |
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 System.IO; | |
using System.Text; | |
using UnityEditor; | |
using UnityEngine; | |
internal class WwiseIDConverter { | |
private enum State { | |
Init, |