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
#if UNITY_EDITOR_WIN | |
using UnityEngine; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
using UnityEditor; | |
using System; | |
namespace GameSparks.Editor | |
{ | |
[InitializeOnLoad] |
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 UnityEditor.iOS.Xcode; | |
using System.Collections.Generic; | |
public class PlistMerger | |
{ | |
public PlistDocument MergePlists(string plistPath, string plistToMergePath) { | |
var plist = new PlistDocument(); |
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
if (typeof(require_once) !== 'undefined') { | |
Spark.setScriptError("require_once", "require_once is already defined! Only import this module in application entry points (Events, Requests, Responses, etc), not in modules!"); | |
Spark.getLog().error("require_once already defined, probably imported from a module"); | |
throw "require_once already defined"; | |
} | |
var require_once__importedModules = {}; | |
var require_once = function(shortCode) { | |
var importedModules = require_once__importedModules; |
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
#!/c/Python27/python | |
# Used as post-checkout and pre-commit git hook | |
import os | |
import sys | |
import msvcrt | |
deleted_files = [] | |
def is_directory_empty(path): |
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.Generic; | |
public class ObjectPool : MonoBehaviour { | |
private const int MIN_AMOUNT_OF_POOLED_OBJECTS = 5; | |
private static ObjectPool _instance; | |
public static ObjectPool Instance { | |
get{ | |
if(_instance == null) { |
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; | |
public class DrawSampleVecs : MonoBehaviour | |
{ | |
void OnDrawGizmos() | |
{ | |
Color color; | |
color = Color.green; | |
// local up |
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; | |
public class NetworkRigidbody : MonoBehaviour | |
{ | |
public double m_InterpolationBackTime = 0.1; | |
public double m_ExtrapolationLimit = 0.5; | |
internal struct State |
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; | |
public class Parable : MonoBehaviour | |
{ | |
public Transform Target; | |
public float firingAngle = 45.0f; | |
public float gravity = 9.8f; | |
public Transform Projectile; |
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; | |
public class NormalRenderer : MonoBehaviour | |
{ | |
public float Threshold = 360.0f; | |
public float Offset = 0; | |
void OnDrawGizmos() | |
{ |
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 UnityEngine.UI; | |
using UnityEngine.EventSystems; | |
[RequireComponent(typeof(ScrollRect))] | |
public class ScrollToSelected : MonoBehaviour | |
{ | |
public float scrollSpeed = 10f; |
OlderNewer