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
const loadConfigFile = require('rollup/dist/loadConfigFile'); | |
const rollup = require('rollup'); | |
const fs = require('fs'); | |
const fsPromises = fs.promises; | |
const path = require('path'); | |
const child = require('child_process'); | |
const NOOP = () => {}; |
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 UnityEditor; | |
using UnityEngine; | |
namespace Pixeland.Tools.Router.Editor | |
{ | |
public abstract class EditorBase : UnityEditor.Editor | |
{ | |
protected void ChangeCheck<T>(T val, Action<T> onChanged) where T : class | |
{ |
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
/** | |
* Converts all .fbx files in the provided folder to .gltf files. | |
* @param {String} src | |
* @param {String} dest | |
*/ | |
const spawn = require('child_process').spawn; | |
const fs = require('fs-extra'); | |
const path = require('path'); |
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
// {0} | |
// Created by {1} @ {2:d} | |
using System; | |
using FlyingIsHard.Assets.Bengsfort.Components.Core; | |
namespace FlyingIsHard.Assets.Bengsfort.Components | |
{{ | |
[Serializable] | |
public class {0} : BaseComponent | |
{{ |
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 Bengsfort.Components.Core; | |
using UnityEngine; | |
namespace Bengsfort.Components | |
{ | |
// This component handles the visual rendering of the section end component. | |
[Serializable] | |
public class SectionEndComponent : BaseComponent | |
{ |
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
// PlayerComponent | |
using System; | |
using UnityEngine; | |
using Bengsfort.Components.Core; | |
namespace Bengsfort.Components | |
{ | |
[Serializable] | |
public class PlayerComponent : BaseComponent |
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; | |
public class TouchController : MonoBehaviour | |
{ | |
int _activeFinger = -1; | |
void Update () | |
{ | |
ReadTouches(); | |
} |
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
# Unity folders | |
/[Ll]ibrary/ | |
/[Tt]emp/ | |
/[Oo]bj/ | |
/[Bb]uild/ | |
/[Bb]uilds/ | |
/Assets/AssetStoreTools* | |
# Visual Studio 2015 cache directory | |
/.vs/ |
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 Array#filter to create array without any dotfiles | |
var fs = require('fs'); | |
var handlebars = require('handlebars'); | |
module.exports = function(){ | |
var appsArray = fs.readdirSync('apps').filter(function(dir) { | |
// return true if `dir` does not start with a `.` | |
// to avoid dotfiles causing ENOTDIR (not a directory) errors |