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
/** | |
* Obsolete! Use https://github.com/johnsoncodehk/ts2gamesparks | |
*/ | |
var path = require('path'), fs = require('fs'); | |
var outDir = "./dist/"; | |
function findAllTsFiles(startPath, paths = []) { | |
if (!fs.existsSync(startPath)) { |
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
/* | |
* https://gist.github.com/johnsoncodehk/783295c6aa06593badfce037c810c7b2 | |
*/ | |
using UnityEngine; | |
[RequireComponent(typeof(Rigidbody))] | |
public class RigidbodyPause : MonoBehaviour { | |
[System.Serializable] |
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 UnityEditor; | |
using System.IO; | |
using System.Collections.Generic; | |
public class Fix55To54 { | |
[System.SerializableAttribute] | |
public class GameObjectData { | |
public bool activeSelf; |
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
/* | |
* https://gist.github.com/johnsoncodehk/17f05ebbeb1b7966efc4d5a176dd0bd8 | |
*/ | |
using UnityEngine; | |
using System; | |
using System.Collections; | |
public static class YieldReturnExtension | |
{ |
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
/* | |
* https://gist.github.com/johnsoncodehk/6da46453ce2f870b6f87f431bb267b9c | |
*/ | |
using UnityEngine; | |
public static class CloneExtension { | |
public static GameObject Clone (this GameObject gameObject) { | |
GameObject newGameObject = Object.Instantiate (gameObject); |
NewerOlder