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
require 'pathname' | |
require 'rbconfig' | |
require 'fileutils' | |
module BasicMoai | |
ROOT_FOLDER = File.expand_path(File.join(File.dirname(__FILE__), "..")) | |
SRC_FOLDER = File.join(ROOT_FOLDER, "src") | |
VENDOR_FOLDER = File.join(ROOT_FOLDER, "vendor") | |
TMP_FOLDER = File.join(ROOT_FOLDER, "tmp") |
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
#!/bin/sh | |
haxelib run openfl $@ |
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; | |
using FullSerializer; | |
namespace SDD.Serializers { | |
public static class JsonSerializer { | |
/// <summary> | |
/// Static Serializer Instance | |
/// </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
using UnityEditor; | |
using UnityEngine; | |
using UnityTest; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection; | |
namespace SDD.Editor { | |
/// <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
// Avoid GC when coroutines wait, instantiate outside of loop | |
WaitForSeconds shortWait = new WaitForSeconds(1.0f); | |
private IEnumerator Run() { | |
while (true) { | |
// do stuff here | |
yield return shortWait; | |
} | |
} |
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; | |
using System.Collections; | |
using System.Collections.Generic; | |
namespace SDD.UI { | |
/// <summary> | |
/// Layout group switches orientation automatically between landscape and |
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; | |
using System.Reflection; | |
using System.Collections.Generic; | |
using System.Text.RegularExpressions; | |
using System.Runtime.Serialization.Formatters; | |
using System.Linq; | |
using NUnit.Framework; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Serialization; |
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
module BasicUnity | |
class Code < Thor | |
namespace :code | |
include Thor::Actions | |
desc "prune", "Remove empty folders and Unity meta files that point to empty folders" | |
method_option "dry-run", :type => :boolean, :desc => "Show what will happen but don't 'rmdir' or 'rm'" | |
def prune(folder=nil) | |
# bash version, requires GNU find |
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
var FileIO = { | |
SaveToLocalStorage : function(key, data) { | |
localStorage.setItem(Pointer_stringify(key), Pointer_stringify(data)); | |
}, | |
LoadFromLocalStorage : function(key) { | |
var returnStr = localStorage.getItem(Pointer_stringify(key)); | |
var bufferSize = lengthBytesUTF8(returnStr) + 1; | |
var buffer = _malloc(bufferSize); |
OlderNewer